You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Crash/white screen on Android with CameraGestureObserver #4105
tl;dr: use onMapIdle instead of CameraGestureObserver.onMapSteady (it’s not ready).
I encountered the same crash on Android with Fabric architecture (React Native 0.76+, Expo SDK 52):
Error: Unsupported top level event type "topOnMapSteady" dispatched
Use case: I needed to detect when camera animations end to show/hide a custom svg scale grid overlay during map interactions (pan, zoom, compass reset, etc.).
Attempted a workaround (rnmapbox patch) using DeviceEventEmitter as a bridge → too complex, would require patching further native code
Working solution: Reverted to using MapView.onMapIdle which is Fabric-compatible and provides similar functionality:
<MapboxGL.MapViewonMapIdle={()=>{// Called when map reaches idle state (no animations, no user gestures)setReady(true);stopAnimating();// Hide loading states, show overlays, etc.}}// ...>
Difference between the two:
onMapSteady (CameraGestureObserver): Fires specifically when camera movement ends
onMapIdle: Fires when map is fully idle (no pending tiles, no animations, no gestures)
For most use cases like mine (showing UI elements after animations complete), onMapIdle works well as a substitute. The main downside is it may fire slightly later than onMapSteady since it waits for all map activity to complete, not just camera movement. And #4074 lists shortcomings that are real.
Environment:
@rnmapbox/maps: 10.2.10
React Native: 0.76.x (New Architecture / Fabric enabled)
Expo SDK: 52
Android only (iOS not tested)
Hope this helps others facing the same issue until a proper fix lands! 🙏
Activity
Senninseyi commentedon Dec 14, 2025
@artanisdesign have you any workaround about this
chikamichi commentedon Jan 9, 2026
tl;dr: use
onMapIdleinstead ofCameraGestureObserver.onMapSteady(it’s not ready).I encountered the same crash on Android with Fabric architecture (React Native 0.76+, Expo SDK 52):
Use case: I needed to detect when camera animations end to show/hide a custom svg scale grid overlay during map interactions (pan, zoom, compass reset, etc.).
What I tried:
CameraGestureObserverwithonMapSteadyfrom PR feat: Add CameraGestureObserver - reliable alternative to onMapIdle #4074 → crashes on Android with FabricDeviceEventEmitteras a bridge → too complex, would require patching further native codeWorking solution: Reverted to using
MapView.onMapIdlewhich is Fabric-compatible and provides similar functionality:Difference between the two:
onMapSteady(CameraGestureObserver): Fires specifically when camera movement endsonMapIdle: Fires when map is fully idle (no pending tiles, no animations, no gestures)For most use cases like mine (showing UI elements after animations complete),
onMapIdleworks well as a substitute. The main downside is it may fire slightly later thanonMapSteadysince it waits for all map activity to complete, not just camera movement. And #4074 lists shortcomings that are real.Environment:
@rnmapbox/maps: 10.2.10Hope this helps others facing the same issue until a proper fix lands! 🙏
Alvi24 commentedon Feb 8, 2026
having the same issue
DavidAmyot commentedon Feb 9, 2026
+1
fix(android): fix onMapSteady event name causing crash
fix(android): fix onMapSteady event crash (rnmapbox#4162)
fix(android): fix onMapSteady event crash (rnmapbox#4162)