Files
react-native-mapbox-gl/ios/install.md
T

1.2 KiB

Manual installation process

Make sure to follow these directions carefully.

First,

npm install react-native-mapbox-gl --save
  1. 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
  2. Select your project in the Project navigator. Click General tab then add node_modules/react-native-mapbox-gl/ios/Mapbox.framework to Embedded Binaries. 💥 Important, make sure you're adding it to general -> Embedded Binaries 💥
  3. In the Build Phases tab, click the plus sign and then New Run Script Phase
  4. Open the newly added Run Script and paste (Only necessary when submitting to the app store, but a good idea to add this now):
 "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Mapbox.framework/strip-frameworks.sh"

  1. In Build Phases tab, click Link Binaries With Libraries and add libRCTMapboxGL.a
  2. Add to project, see example