React-native-mapbox-gl: [iOS] Incompatible with React Native 0.44: missing React/RCTConvert+MapKit.h

Created on 27 Apr 2017  路  10Comments  路  Source: nitaliano/react-native-mapbox-gl

React Native 0.44 removes the deprecated MapView component, which means React/RCTConvert+MapKit.h has been deleted.

Trying to build a project with this lib on RN 0.44 yields several React/RCTConvert+MapKit.h errors.

Most helpful comment

I'm going to submit a PR that fixes all this tomorrow because frankly modifying library code manually without a fork isn't the best idea.

All 10 comments

I'm getting the same error. Any suggestions? Thanks!

As indicated in the released notes for React 0.44:

Breaking changes
Remove MapViewIOS
48f30ec - @mkonicek
<MapView /> was deprecated for a while, in this release it is removed from react-native.

react-native-mapbox-gl is unavoidably -broken- as of React-Native 0.44

@8-uh Do you know of a manual work around for this?

I fixed the library headers myself, works now.

@digitaldavenyc Would you be willing to share the solution?

I've been attempting to use the MapBoxGL.js in a webview and it's proving to be... unworthy.

@8-uh The errors show up in XCode during a build. you need to fix all imports from the react library

ex: change #import "RCTBridgeModule.h" to #import <React/RCTBridgeModule.h>

This is due to the breaking changes in RN 0.44

@digitaldavenyc I've done that.. and it always comes down to not having the `RCTConvert+MapKit.h" file that React pulled from the Library with 0.44

You might want to try fixing the import in the file RCTConvert+Mapkit.h for #import <React/RCTConvert.h>

I'm going to submit a PR that fixes all this tomorrow because frankly modifying library code manually without a fork isn't the best idea.

@iamtommcc Can you close this if this is fixed?

Was this page helpful?
0 / 5 - 0 ratings