Closed jsathu07 closed 4 years ago
Did you solve this?
nope
On Wed, Apr 29, 2020 at 4:43 AM doyle-mark notifications@github.com wrote:
Did you solve this?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/react-native-mapbox-gl/maps/issues/807#issuecomment-620902521, or unsubscribe https://github.com/notifications/unsubscribe-auth/AORR5OKCSJLFUXCNJZOAADTRO5PIRANCNFSM4MEQLKMA .
Maybe this will help you https://stackoverflow.com/questions/58397237/react-native-mapbox-issue/62318576#62318576
I have the same issue with the latest version of react-native-mapbox-gl
I have the same issue with the latest version of react-native-mapbox-gl
can you find the solution?
There are literally hundreds of devs who are using this lib and are not reporting this issue. Please follow the instructions in the issue template and open a new ticket if you still encounter this problem.
We can not help you with this little information on the issue.
There are literally hundreds of devs who are using this lib and are not reporting this issue. Please follow the instructions in the issue template and open a new ticket if you still encounter this problem.
We can not help you with this little information on the issue.
Sorry about that, I should Have said something when things started working,
I installed wix react native navigation first then Installed mapbox gl and then things didnt work properly, by inversing the order of installs, things seem to work like a charm.
If your installing it after instlaling react native navigtion by wix then it would be better of starting a project using expo's create react native app would give you intended results.
Hello, I'm facing same problem(console.error native part of Mapbox react native libraries were not registered properly. double check our native installation guides.). anyone suggest what I do.
Thanks
On which version of RN are y'all?
The installation guide only applies to version 0.6x and higher.
If you have a version below that, you need to follow the manual installation steps.
Have same issue on RN 0.63
I encounter this problem differently on IOS and Android, please make sure you are able to find the followings in your project: env: "react-native": "^0.60.5", "@react-native-mapbox-gl/maps": "^8.1.0",
IOS & Android:
make sure you called MapboxGL.setAccessToken(yourAccessToken)
Autolink never works for me on Android, so I have to do manually:
android/settings.gradle
, add this
include ':rctmgl' project(':rctmgl').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-mapbox-gl/maps/android/rctmgl')
android/app/build.gradle
, add this
dependencies { ... implementation project(':rctmgl') }
MainApplication.java
, add this
import com.mapbox.rctmgl.RCTMGLPackage;
protected List<ReactPackage> getPackages() { // Add additional packages you require here // No need to add RnnPackage and MainReactPackage return Arrays.<ReactPackage>asList( ... new RCTMGLPackage() <-Add this ); }
Hopefully this can help.
Same here. ERROR Native part of Mapbox React Native libraries were not registered properly, double check our native installation guides.
did you?
I'm experiencing this issue. I copied and pasted everything from the repo on github react-native-mapbox-gl/maps I'm using node v16.13.0. "dependencies": { "@react-native-mapbox-gl/maps": "^8.5.0", "expo": "~44.0.0", "expo-status-bar": "~1.2.0", "react": "17.0.1", "react-dom": "17.0.1", "react-native": "0.64.3", "react-native-web": "0.17.1" }
Any solution for this issue? I'm facing the same with the latest version of Mapbox and expo: "@rnmapbox/maps": "github:rnmapbox/maps#main", "expo": "^45.0.6", "react": "17.0.2", "react-native": "0.68.2"
Same here :'(
I encounter this problem differently on IOS and Android, please make sure you are able to find the followings in your project: env: "react-native": "^0.60.5", "@react-native-mapbox-gl/maps": "^8.1.0",
IOS & Android: make sure you called
MapboxGL.setAccessToken(yourAccessToken)
Autolink never works for me on Android, so I have to do manually:
- in
android/settings.gradle
, add thisinclude ':rctmgl' project(':rctmgl').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-mapbox-gl/maps/android/rctmgl')
- in
android/app/build.gradle
, add thisdependencies { ... implementation project(':rctmgl') }
- in
MainApplication.java
, add this
import com.mapbox.rctmgl.RCTMGLPackage;
protected List<ReactPackage> getPackages() { // Add additional packages you require here // No need to add RnnPackage and MainReactPackage return Arrays.<ReactPackage>asList( ... new RCTMGLPackage() <-Add this ); }
Hopefully this can help.
Did you finally managed to sort this out ?
:wave: @jsathu, please respect our issue template - required fields are missing.