Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript -...
Transcript of Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript -...
![Page 2: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/2.jpg)
We can write mobile applications...
![Page 3: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/3.jpg)
using ReactJS...
![Page 4: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/4.jpg)
using HTML principals...
![Page 5: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/5.jpg)
using CSS principals...
![Page 6: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/6.jpg)
without HTML...
![Page 7: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/7.jpg)
without CSS...
![Page 8: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/8.jpg)
without WebView
![Page 9: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/9.jpg)
Supported platforms iOS and Android
![Page 10: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/10.jpg)
Supported platforms iOS and Androidnot available
![Page 11: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/11.jpg)
Under the hood
React JS JavaScriptCore Native ComponentsRCTBridge
![Page 12: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/12.jpg)
Components• ActivityIndicatorIOS
• DatePickerIOS
• Image
• ListView
• MapView
• Navigator
• NavigatorIOS
• PickerIOS
• ScrollView
• SliderIOS
• SwitchIOS
• TabBarIOS
• TabBarIOS.Item
• Text
• TextInput
• TouchableHighlight
• TouchableOpacity
• TouchableWithoutFeedback
• View
• WebView
![Page 13: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/13.jpg)
Components
![Page 14: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/14.jpg)
Moving to the project
![Page 15: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/15.jpg)
Setup
![Page 16: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/16.jpg)
Setup↬ Homebrew ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
↬ Node.js brew install node
↬ Watchman brew install --HEAD watchman
↬ Google Chrome
↬ React Native CLI npm install -g react-native-cli
![Page 17: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/17.jpg)
Includes
![Page 18: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/18.jpg)
JSX
![Page 19: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/19.jpg)
Styles
![Page 20: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/20.jpg)
Actions
![Page 21: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/21.jpg)
Actions
![Page 22: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/22.jpg)
Debug
![Page 23: Mobile applications in a new way with React Native (by Eugene Zharkov) - Hack'n'Tell JavaScript - 2015.05.16](https://reader034.fdocuments.us/reader034/viewer/2022042512/55b10d7abb61eb2a3f8b47df/html5/thumbnails/23.jpg)
The End