Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 30336

react native mapbox gl - crash on Android

$
0
0

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.


Viewing all articles
Browse latest Browse all 30336

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>