I'm facing this issue, can't find the solution yet.
I'm using @react-native-mapbox-gl/maps for my app.
This is reported from firebase crashlytics.
Fatal Exception: java.lang.NullPointerException Attempt to invoke virtual method 'android.view.ViewGroup com.mapbox.rctmgl.components.mapview.RCTMGLMapView.offscreenAnnotationViewContainer()' on a null object reference com.mapbox.rctmgl.components.annotation.RCTMGLPointAnnotation.removeFromMap
I can't reproduce too. Here is the code
<S.MapView styleURL={mapboxConfig.styleUrl} compassEnabled={false}><MapboxGL.Camera defaultSettings={{ zoomLevel: 16, centerCoordinate: position }} /><MapboxGL.PointAnnotation id='pin' coordinate={props.coordinate} anchor={anchor}><IconMarker width='32' height='42' /></MapboxGL.PointAnnotation></S.MapView>It happen on Android only.
Thanks for your helps.