Examplar applications for learning React Native development concepts.
Facebook wrote this Getting Started Guide for React Native apps. It provides instructions for iOS and Android, which are summarised here.
-
Install XCode here.
-
Install node, watchman, and the react-natice CLI
brew install node
brew install watchman
npm install -g react-native-cli
- Run the app
./node_modules/react-native/packager/packager.sh & (Optional)
react-native run-ios
-
Install Java here and Android Sudio here. (installation instructions here)
-
Setup Android development environment (SDK, Emulator) as per the Facebook documentation [here]((https://facebook.github.io/react-native/docs/getting-started.html).
-
With the current version of Android Studio for MacOS (2.3.2), the only emulator (AVD) installed is an Android 7.0 (API 25) x86. You will need an AVD that runs with Adroid 6.0 (API 23) and x86_64 archicture. To install it use the Tools > Android > SDK Manager and Toold > Android > AVD Manager to install Android 6.0 API 23, and create (or modify) an emulator to use this OS. Once done start the emulator.
-
Run the Android app
react-native run-android



