SlideShare a Scribd company logo
React Native & V2HOT
刘易成
About
• 美团-平台业务部-前端组-城市⽀支撑组
• http://github.com/xcatliu/V2HOT
内容概要
• React Native 简单介绍
• 以⼀一个前端的视⾓角,使⽤用 React Native 完整的开发
⼀一个应⽤用 V2HOT
React Native 是什么
• 使⽤用 JavaScript 和 React 开发原⽣生(native )应⽤用
• Write once, run anywhere
• Learn once, write anywhere
React Native & V2HOT
React Native 的特点
• Native iOS Components
• Asynchronous Execution
• Touch Handling
• Flexbox and Styling — css的⼦子集
• Polyfills
• Extensibility
React Native 的现状
• 在⽣生产环境有⼀一定⻛风险
• Facebook有3款App(Groups、Ads Manager、
F8)使⽤用了React Native
• 社区活跃,https://react.parts/native-ios 有 100+ 个
组件(react-web 有 800+ 个)
React Native 的未来
• React Native for Android
• October
• http://facebook.github.io/react/blog/2015/03/30/
community-roundup-26.html
V2HOT 开发实践
• 准备
• OS X,XCode,Homebrew,node,watchman,
flow,npm,react-native-cli
• https://github.com/xcatliu/V2HOT
Hello World
• XCode,Debugging
• View,Text
• Styling — Flexbox,StyleSheet
• 0.1.0
List View
• Fetching and rendering v2ex hot topics
• ListView,Image
• ⼩小插曲:报错升级到 0.4.1 解决
• 0.1.1
NavigatorIOS
• Add NavigatorIOS and TabBarIOS
• 图⽚片
• ⼩小插曲:NavigationIOS 不会⾃自动更新
• 0.1.2
AsyncStorage
• Add AsyncStorage to save the fetched topics
• 和 LocalStorage ⼀一样,只能存储字符串
• 0.1.3
Webview
• Add WebView to show one topic
• WebView,TouchableHighlight
• 0.1.4
RefreshableListView
• Pull to refresh topics
• https://github.com/jsdf/react-native-refreshable-
listview
• 0.1.6
Settings
• Add eraser all topics option to Settings
• Add About view to Settings
• Error handling
• AlertIOS
• 0.2.1
Icon
• Add icon and LaunchImage for V2HOT
• 1.0.0-alpha.1
发布到 App Store
• 开发者帐号
• Beta 测试分发 — http://fir.im/
• Using offline bundle
• Running On Device
其他没有使⽤用到的技术
• Flux in React Native
• Components and APIs
• Native Modules
• Custom native views and modules
• Testing
Links
• http://www.zhihu.com/question/27852694
• http://blog.cnbang.net/tech/2698/
• http://facebook.github.io/react/blog/2015/03/30/
community-roundup-26.html
Q & A
刘易成

More Related Content

PDF
React 组件开发
PDF
Kamigo reviews 20191127
PDF
網站部署與第三方服務整合
PDF
7. 設計樣板套用
PDF
工作坊簡介
PDF
專案啟動與設定
PDF
Blazor Component 開發實戰
PDF
John Resig Beijing 2010 (中文版)
React 组件开发
Kamigo reviews 20191127
網站部署與第三方服務整合
7. 設計樣板套用
工作坊簡介
專案啟動與設定
Blazor Component 開發實戰
John Resig Beijing 2010 (中文版)

Similar to React Native & V2HOT (20)

PDF
JSDC 2015 React-Native 實戰
PPTX
開放原始碼 Ch3.1 mobile - oss - oss行動領域-1 (ver1.0)
PDF
HTML5 生态系统和应用架构模型
PPTX
React Native on Android
PPTX
Android快速发布&持续集成
PPTX
介紹前端 Web 技術在跨平台開發上的應用
PPTX
Appcan平台介绍
PPTX
Appcan介绍自己的应用开发平台
PDF
Appcan移动应用开发平台介绍120409
PDF
20141212 html5 及微軟跨平台佈局 long
PPTX
Artifacts management with CI and CD
PDF
Azure Container Registry(preview)x Web App On Linux(preview)
PDF
Flutter 踩雷心得
PPTX
Azure Web App on Linux @ Global Azure Bootcamp 2017 Taiwan
PDF
W3CTech美团react专场-React Native 初探
PDF
React.js what do you really mean?
PPTX
Android 4-app
PPTX
VS2022入門................................
PPTX
Universal windows apps 開發—運用 html 及 java script
JSDC 2015 React-Native 實戰
開放原始碼 Ch3.1 mobile - oss - oss行動領域-1 (ver1.0)
HTML5 生态系统和应用架构模型
React Native on Android
Android快速发布&持续集成
介紹前端 Web 技術在跨平台開發上的應用
Appcan平台介绍
Appcan介绍自己的应用开发平台
Appcan移动应用开发平台介绍120409
20141212 html5 及微軟跨平台佈局 long
Artifacts management with CI and CD
Azure Container Registry(preview)x Web App On Linux(preview)
Flutter 踩雷心得
Azure Web App on Linux @ Global Azure Bootcamp 2017 Taiwan
W3CTech美团react专场-React Native 初探
React.js what do you really mean?
Android 4-app
VS2022入門................................
Universal windows apps 開發—運用 html 及 java script
Ad

React Native & V2HOT