Switch mapbox-gl to use GLSurfaceView #787
gmaclennan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We use
@react-native-mapbox-gl/maps
to render the map. For historical reasons it uses a textureView to render the map but this is deprecated in the Mapbox SDK.We could change to using a GLSurfaceView for rendering the map which might resolve some of the random rendering errors we are seeing on different devices, and apparently they do perform better.
The limitation of GLSurfaceView is that you cannot have overlapping surface views in the same activity (e.g. app). The way React Navigation works, different screens are "pushed" over a previous screen. In our case the observation view is pushed over the map view, which would result in an overlap.
A few solutions:
createNativeStackNavigator
fromreact-native-screens
that renders each screen on a separate native view, which might solve the problem.Beta Was this translation helpful? Give feedback.
All reactions