Cross-Platform Maps App using React Native with Mapbox GL Component and OSM2VectorTiles as vector data source.
In order to build the Android or iOS version you need to install Xcode and Android Studio.
Dependencies
- node
- npm
- React Native >= 0.15.0
- Mapbox GL Module
- Xcode
- Android Studio
After cloning this repository add your Mapbox API Access Token to the index.ios.js
and index.android.js
file. The API Token is still needed for sprites and glyphs even though OSM2VectorTiles is used as vectortile source.
Start your Android or iOS Simulator and run the commands below
npm install
react-native run-android OR react-native run-ios
More information about getting started with React Native can be found here.