Open sethvincent opened 7 years ago
Storing these notes here to refer back to, and I'll add android instructions later.
The important things I learned:
npm i -g react-native-cli
react-native init Surveyor --version react-native@0.39.2
cd Surveyor
npm i --save react-native-mapbox-gl
http://facebook.github.io/react-native/docs/getting-started.html
Note: don't use react-native link.
react-native link
https://github.com/mapbox/react-native-mapbox-gl/blob/master/android/install.md
When you add the getPackages method, make sure to add it to MainApplication.java, not MainActivity.java.
getPackages
Create and run a virtual device in android studio: https://developer.android.com/studio/run/managing-avds.html
react-native run-android
https://github.com/mapbox/react-native-mapbox-gl/blob/master/ios/install.md
react-native run-ios
Storing these notes here to refer back to, and I'll add android instructions later.
The important things I learned:
Installing react-native and react-native-mapbox-gl
Initial set up
Install react-native-cli
Create the project using a specific version of react-native
Change directory into the project
Install react-native-mapbox-gl
Android
Follow the react-native getting started guide for android:
http://facebook.github.io/react-native/docs/getting-started.html
Follow the react-native-mapbox-gl instructions for android:
Note: don't use
react-native link
.https://github.com/mapbox/react-native-mapbox-gl/blob/master/android/install.md
When you add the
getPackages
method, make sure to add it to MainApplication.java, not MainActivity.java.Run the project in a simulator
Create and run a virtual device in android studio: https://developer.android.com/studio/run/managing-avds.html
iOS
Follow the manual install instructions for iOS
https://github.com/mapbox/react-native-mapbox-gl/blob/master/ios/install.md
Run the project in a simulator
Android
Follow the react-native getting started guide for android:
http://facebook.github.io/react-native/docs/getting-started.html