This is React Native Demo Project
iOS:
- Make sure you have Xcode installed (tested with Xcode 11.2.1).
- Make sure you have iOS simulators installed (tested with iPhone 11 Pro Max/iOS 13.2).
- Make sure you have node installed (tested with node 12.12).
Android:
- Make sure you have Android Studio installed(Android SDK、Android SDK Platform、Performance (Intel ® HAXM)、Android Virtual Device)
- Make sure you have Android SDK installed(tested with Android SDK Platform 28, Android 9 (Pie))
- Make sure you have created a Android Virtual Device(tested with Pixel_3_API_28)
- Make sure you have set the
$HOME/.bashrcor$HOME/.bash_profile
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-toolsIn the root directory
- iOS:
make build-ios-rn-example- Android:
make build-android-rn-example- install node_modules
yarn install- install pod
(cd ios && pod install)- generate the Protocol Buffers
yarn pbjs- run iOS
yarn ios- run Android
yarn androidWe use Detox for e2e test.
- install applesimutils
A collection of utils for Apple simulators, Detox uses it to communicate with the simulator.
brew tap wix/brew
brew install applesimutils- run e2e
yarn e2eor run debug mode
yarn e2e:debugyarn e2e:androidor run debug mode
yarn e2e:debug:android