React-native-mapbox-gl: Erro React-Native Android - react-native": "0.59.1"

Created on 2 May 2019  路  2Comments  路  Source: nitaliano/react-native-mapbox-gl

It seems that the mapbox does not work on the new versions of react, I'm using the

"react": "16.8.3",
"react-native": "0.59.1",

Dependency path 'mapbox-react-native-mapbox-gl:unspecified' --> 'com.mapbox.mapboxsdk:mapbox-android-sdk:5.4.1' --> 'com.android.support:support-fragment:28.0.0' --> 'com.android.support:loader:28.0.0' --> 'android.arch.lifecycle:livedata:1.1.1' --> 'android.arch.core:runtime:1.1.1' --> 'com.android.support:support-annotations:26.1.0'

Most helpful comment

Same bug here. It is like npm published version does not have all latest changes from build gradle and it uses old mapbox-android-sdk:5.4.1 version.

When I locally overwrite content of build gradle with the latest one it works beacuse it uses latest mapbox sdk 5.5.3.

Workaround is it change package.json dependency to:

    "@mapbox/react-native-mapbox-gl": "https://github.com/nitaliano/react-native-mapbox-gl.git",

so it will use latest code from git repo.

All 2 comments

Same bug here. It is like npm published version does not have all latest changes from build gradle and it uses old mapbox-android-sdk:5.4.1 version.

When I locally overwrite content of build gradle with the latest one it works beacuse it uses latest mapbox sdk 5.5.3.

Workaround is it change package.json dependency to:

    "@mapbox/react-native-mapbox-gl": "https://github.com/nitaliano/react-native-mapbox-gl.git",

so it will use latest code from git repo.

Same bug here. It is like npm published version does not have all latest changes from build gradle and it uses old mapbox-android-sdk:5.4.1 version.

When I locally overwrite content of build gradle with the latest one it works beacuse it uses latest mapbox sdk 5.5.3.

Workaround is it change package.json dependency to:

    "@mapbox/react-native-mapbox-gl": "https://github.com/nitaliano/react-native-mapbox-gl.git",

so it will use latest code from git repo.

Same here, and it resolves to me too

Was this page helpful?
0 / 5 - 0 ratings

Related issues

glennverschooren picture glennverschooren  路  4Comments

EugenePisotsky picture EugenePisotsky  路  4Comments

Amalp picture Amalp  路  3Comments

Gp2mv3 picture Gp2mv3  路  3Comments

kristfal picture kristfal  路  3Comments