-
Install
npm
. -
Install the React Native CLI tool and the build dependencies.
install-build.sh
- Buy a Mac, because Apple.
- Install XCode.
- Install
watchman
:brew install watchman
.
You need to ensure that the android SDK is installed.
- Install Android Studio.
- Create a project to ensure that the SDK is installed.
- Find out where the SDK is installed and
cd
to the location. This was~/Android/Sdk
for me. - From the SDK root, run
./tools/android
and install a bunch of stuff including SDK Tools, Platform Tools, ADB, API 23.
- On a mac, open
/ios/*.xcodeproj
in Xcode. - Click "Run".
export ANDROID_HOME=/home/ben/Android/Sdk/ # or bash equivalent, pointing to your Android SDK install.
$ANDROID_HOME/tools/android avd # then launch an emulator.
react-native start --reset-cache # and keep it running.
react-native run-android # to compile and install the app on the running device.
react-native log-android # to see log output (including console.log).