Install Node, Watchman & React Native CLI as described here.
Install dependencies to compile node-canvas depending on your OS.
Install dependencies with Yarn.
$ yarn install
Populate your local .env
file:
$ cp .env.dist .env
A Google Maps API Key is needed at compilation time for Android (see AndroidManifest.xml
).
-
To get an API key follow the instructions Get API key
-
Make sure that you have
Maps SDK for Android
API enabled in your Google Cloud Platform Console -
Add your API key to
.env
GOOGLE_MAPS_BROWSER_KEY=YOUR_API_KEY
GOOGLE_MAPS_ANDROID_KEY=YOUR_API_KEY
- Follow the Firebase instructions to download and copy
google-services.json
to theandroid/app
folder
iOS development requires macOS and CocoaPods.
$ sudo gem install -n /usr/local/bin cocoapods
$ cd ios && pod install
- Follow the Firebase instructions to download and copy
GoogleService-Info.plist
to theios/
folder
yarn test
« Have you tried turning it off and on again? »
watchman watch-del-all
rm -rf $TMPDIR/react-*
rm -rf $TMPDIR/haste-map-react-native-packager-*
rm -rf ~/.rncache
rm -rf node_modules
rm yarn.lock
yarn cache clean
yarn install