rnmapbox / maps

A Mapbox react native module for creating custom maps
MIT License
2.22k stars 838 forks source link

[Bug]: Android - (NOBRIDGE) ERROR Error: Unsupported top level event type "topRct.mapbox.map.change" dispatched #3583

Open ChrisBindy opened 1 month ago

ChrisBindy commented 1 month ago

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

robin-pham commented 1 month ago

Just to note this is a dupe of https://github.com/rnmapbox/maps/issues/3493

ChrisBindy commented 1 month ago

Has there been any actual update on this issue as the linked dupe of #3493 is closed without a resolution to the problem?

opesto commented 3 weeks ago

I am also having the same issue with react-native: 0.75.2 and @rnmapbox/maps: 10.1.30. Any solutions yet?