-
-
Notifications
You must be signed in to change notification settings - Fork 860
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Mapbox.Location component not woking properly when using React Native 0.76 with new architecture #3681
Comments
I have the same issue @EmilJunker. Were you able to solve it? |
@gabri3l0 I disabled the new architecture for now. |
Use this : |
I too am facing this issue. We unfortunately need to retain the new architecture due to some other dependencies. Fingers crossed a fix is found shortly. |
The reason for the problem could be an unstable Internet connection, see if that's the case, it's possible for me... |
Mapbox Implementation
Mapbox
Mapbox Version
default
React Native Version
0.76.1
Platform
Android
@rnmapbox/maps
version10.1.33
Standalone component to reproduce
Observed behavior and steps to reproduce
Include the above component in a React Native 0.76 app with the new architecture enabled. Then build and run the app for Android. When prompted, give the app permission to access your location.
Then observe the following problems:
onLocationUpdate
callback only gets called once and is never updated when the location changesExpected behavior
The
onLocationUpdate
callback should be called every time there is a new location (i.e. about once every second). The location pin displayed on the map should update accordingly.Notes / preliminary analysis
If you set
newArchEnabled=false
inandroid\gradle.properties
and rebuild the app, everything will work properly.Additional links and references
Minimal reproducible example app: https://github.com/EmilJunker/RNMapboxTestApp
The text was updated successfully, but these errors were encountered: