-
-
Notifications
You must be signed in to change notification settings - Fork 859
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]: Event handlers not called in web environment #3597
Comments
+1 |
I ended up switching to maplibre-react-native instead, and falling back to react-map-gl with maplibre-gl-js for web. See my Expo MapLibre native + web demo for details. |
@Jaza There's an example
Read the source code in |
Mapbox Implementation
Mapbox
Mapbox Version
default
React Native Version
0.74.1
Platform
Android
@rnmapbox/maps
version10.1.28
Standalone component to reproduce
Observed behavior and steps to reproduce
In Android (Expo app, development build - not Expo Go, not EAS - running in Android Emulator, or running on physical device via USB debugging / adb): alerts appear with correct map location on initial load and on pan / zoom, onCameraChanged / onMapIdle appear to be getting triggered.
In Expo Web: no alerts appear, onCameraChanged / onMapIdle appear to NOT be getting triggered.
Expected behavior
Should be the same in Expo Web as it is in Android, i.e. onCameraChanged / onMapIdle should get triggered.
Notes / preliminary analysis
No response
Additional links and references
Also reported (not by me) at: https://stackoverflow.com/questions/78625575/mapbox-from-rnmapbox-event-handlers-are-not-called-on-web
The text was updated successfully, but these errors were encountered: