Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Starting React Native & Expo

Starting React Native & Expo

How to getting started with React Native and Expo, and Release at Unitomo Facebook Developer Circles: Surabaya

Firdaus

May 28, 2017
Tweet

More Decks by Firdaus

Other Decks in Technology

Transcript

  1. REAC T N AT IVE & E X P O

    START ING W IT H
  2. React Native • ReactJS jutsu
 • Cross Platforms (iOS, Android,

    Windows ?) • Faster than Hybrid Tech (Cordova)
  3. React Native • ReactJS jutsu
 • Cross Platforms (iOS, Android,

    Windows ?) • Faster than Hybrid Tech (Cordova) • Shared Codebase (ex: validation, utils, I18N)
  4. Dilemma • Setting Up can be intense
 • iOS doesn't

    work on Linux on Windows • Need more fast development
  5. Built top of React Native, Free open source project for

    building Native iOS and Android apps in Javascript.
  6. Native Components:
 • MapView • DatePicker • Toolbar Native SDK

    APIs:
 • ImagePicker • Geolocation • Push Notification More: https:/ /docs.expo.io/versions/v17.0.0/sdk/index.html
  7. Create TodoApp • One TextInput
 • One Submit button •

    Insert textinput when press submit button • Show array of todos • Link: https://github.com/Facebook-DevC-Surabaya/w1- reactnative-todoapp
  8. Publish on Expo:
 • exp publish | Hit button publish

    on Expo XDE • exp build:android <ios>
  9. Publish on Expo:
 • exp publish | Hit button publish

    on Expo XDE • exp build:android <ios> • Need internet connection
  10. Publish on Expo:
 • exp publish | Hit button publish

    on Expo XDE • exp build:android <ios> • Need internet connection • And a Coffe ☕
  11. • npm run eject • Will need XCode / Android

    Studio for building apps Eject from Expo
  12. • npm run eject • Will need XCode / Android

    Studio for building apps • Deploy on Android (https://facebook.github.io/react-native/ docs/signed-apk-android.html | http://blog.tylerbuchea.com/ react-native-publishing-an-android-app/) Eject from Expo
  13. • npm run eject • Will need XCode / Android

    Studio for building apps • Deploy on Android (https://facebook.github.io/react-native/ docs/signed-apk-android.html | http://blog.tylerbuchea.com/ react-native-publishing-an-android-app/) • Deploy on iOS (https://medium.com/react-native- development/deploying-a-react-native-app-for-ios-pt-1- a79dfd15acb8) Eject from Expo
  14. Conclusion • Many ways to start, choose based on your

    needs
 • Beware with Native Modules, especially with Expo
  15. Conclusion • Many ways to start, choose based on your

    needs
 • Beware with Native Modules, especially with Expo • Do it First, then Do it Right, then Do it Better
  16. Glossary • Adam Perry - Create React Native App: 5

    min. to "Hello, World!" - React Conf 2017
 (https://www.youtube.com/watch? v=9baaVjGdBqs&list=WL&index=8&spfreload=10)
 • Intro to React Native & Expo - Build your first mobile app (https://www.youtube.com/watch? v=fQhH5SK2yTU&list=WL&index=5)