Open
Description
Mapbox Implementation
Mapbox
Mapbox Version
default
React Native Version
0.74.5
Platform
Android
@rnmapbox/maps
version
10.1.28
Standalone component to reproduce
import React from 'react';
import {
SafeAreaView,
} from 'react-native';
import {
Colors,
} from 'react-native/Libraries/NewAppScreen';
import MapboxGL from '@rnmapbox/maps';
const createSimpleMapView = (): React.JSX.Element => {
return (
<MapboxGL.MapView
style={{height: 200, width: 200}}
zoomEnabled={false}
scrollEnabled={false}
scaleBarEnabled={false}>
<MapboxGL.Camera
zoomLevel={14}
centerCoordinate={[-0.118092, 51.509865]}
animationMode={'none'}
defaultSettings={{
centerCoordinate: [-0.118092, 51.509865],
zoomLevel: 14,
}}
/>
</MapboxGL.MapView>
)
};
function App(): React.JSX.Element {
return (
<SafeAreaView>
{createSimpleMapView()}
</SafeAreaView>
);
}
export default App;
Observed behavior and steps to reproduce
When the map loads the following error occurs:
(NOBRIDGE) ERROR Error: Unsupported top level event type "topRct.mapbox.map.change" dispatched
To reproduce:
1 - enable new architecture in gradle.properties of the android project.
2 - Build project
3 - Start project
Expected behavior
Map to load without errors
Notes / preliminary analysis
No response
Additional links and references
No response