React-native-mapbox-gl: React Native App using mapbox crashes immediately after ruuning command ```react-native run-android```

Created on 30 Aug 2018  路  5Comments  路  Source: nitaliano/react-native-mapbox-gl

Hey there
I'm just getting started with mapbox but I have got a problem. Whenever I'm trying to run my app on emulator, it just crashes immediately showing no errors in log.

Please Help!

Most helpful comment

There is a fix for this and the real issue is with the command below and you do not need to roll back your React Native.

Mapbox.setAccessToken(.....);

Fix here:
https://github.com/mapbox/react-native-mapbox-gl/issues/1139#issuecomment-379647942

All 5 comments

Same issue. I made a new project with react-native init. Did the android install steps. If I add any Mapbox function and run react-naive run-android the app crashes with error "Unfortunately, [app name] has stopped." IOS runs fine however.

You need to check your adb logs for an error there will be one there

@ashavyrin You need to downgrade your RN to 0.55.4

There is a fix for this and the real issue is with the command below and you do not need to roll back your React Native.

Mapbox.setAccessToken(.....);

Fix here:
https://github.com/mapbox/react-native-mapbox-gl/issues/1139#issuecomment-379647942

@nitaliano can be closed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VentsislavDinev picture VentsislavDinev  路  3Comments

digitaldavenyc picture digitaldavenyc  路  4Comments

madroneropaulo picture madroneropaulo  路  4Comments

alexisohayon picture alexisohayon  路  4Comments

lucasbento picture lucasbento  路  3Comments