Install Node, Watchman & React Native CLI as described here.
Install dependencies with Yarn, and link them with React Native CLI.
$ yarn install
$ sudo gem install cocoapods
NB: You may need to open the Android project in Android Studio before it builds.
- Get a Google Maps API Key
A Google Maps API Key is needed at compilation time for Android (see AndroidManifest.xml
).
You will need to have the Google Maps Android API service enabled.
- Create a
gradle.properties
file inGRADLE_USER_HOME
(defaults to~/.gradle
)
Learn more about configuring Gradle Build Environment
googleMapsApiKey=YOUR_API_KEY
- Download
Android Studio
NB: You may need to open the iOS project in xCode before it builds.
react-native run-ios
yarn test
« Have you tried turning it off and on again? »
watchman watch-del-all
rm -rf node_modules
rm -rf $TMPDIR/react-*
rm -rf $TMPDIR/haste-map-react-native-packager-*
rm -rf ~/.rncache
rm yarn.lock
yarn cache clean
yarn install
react-native link