React-native-mapbox-gl: Error: undefined is not an object (evaluating 'MapBoxGL.UserTrackingModes')

Created on 27 May 2018  路  3Comments  路  Source: nitaliano/react-native-mapbox-gl

I'm getting the error noted in the title of this issue when attempting to use Mapbox with React Native. I've followed the Android installation steps, but I'm still getting this issue. I even deleted my project, re-initialised it using create-react-native-app, using Expo. I then do exp eject, then follow the instruction on updating the gradle scripts and the settings etc.

Are there any other commands I need to run, or possibly missing anything else?

Most helpful comment

Doing a little more digging, it looks like a potential incompatibility with Expo could be the cause. Which is tricky because that's what create-react-native-app uses by default.

All 3 comments

Doing a little more digging, it looks like a potential incompatibility with Expo could be the cause. Which is tricky because that's what create-react-native-app uses by default.

@EwanValentine Expo doesn't support react-native-mapbox-gl as this repo implements native code changes. Wanna see this in Expo? Vote for it in Expo's feature prio board.

Okay cool, I'll get voting! Cheers.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

max-prokopenko picture max-prokopenko  路  4Comments

kristfal picture kristfal  路  3Comments

igor9silva picture igor9silva  路  3Comments

Maxence-Machu picture Maxence-Machu  路  3Comments

vyankat70war picture vyankat70war  路  3Comments