mirror of
https://github.com/status-im/react-native-mapbox-gl.git
synced 2026-08-31 13:01:15 +00:00
The React Native module is actually 1 more level up in the folder structure now since the `RCTMapboxGL.xcodeproj` is in the nested `ios` folder.
1.9 KiB
1.9 KiB
Installation Process
Notes:
react-native ^v0.4.3is required
npm install react-native-mapbox-gl --save- In the XCode's
Project navigator, right click on project's name ➜Add Files to <...>
- Add
node_modules/react-native-mapbox-gl/ios/RCTMapboxGL.xcodeproj
- Select your project in the
Project navigator. ClickBuild PhasesthenLink Binary With Libraries. Addnode_modules/react-native-mapbox-gl/ios/RCTMapboxGL/libRCTMapboxGL.a
- Select your project in the
Project navigator. ClickBuild PhasesthenCopy Bundle Resources. Click the+button. When the modal appears, clickAdd other. Addnode_modules/ios/react-native-mapbox-gl/RCTMapboxGL/Mapbox.bundle.
- Just like in the last step, select your project in the
Project navigator. ClickBuild PhasesthenCopy Bundle Resources. Click the+button. When the modal appears, clickAdd other. Addnode_modules/react-native-mapbox-gl/ios/RCTMapboxGL/Settings.bundle. More information on location metrics can be found here. - Add the following Cocoa framework dependencies to your target's Link Binary With Libraries build phase:

