Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ChrisBindy opened this issue Aug 7, 2024 · 3 comments
Labels
bug 🪲 Something isn't working

Comments

@ChrisBindy
Copy link

ChrisBindy commented Aug 7, 2024

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

@ChrisBindy ChrisBindy added the bug 🪲 Something isn't working label Aug 7, 2024
@github-actions github-actions bot closed this as completed Aug 7, 2024
@ChrisBindy ChrisBindy changed the title [Bug]: Android Event Dispatch Errors [Bug]: Android - (NOBRIDGE) ERROR Error: Unsupported top level event type "topRct.mapbox.map.change" dispatched Aug 7, 2024
@github-actions github-actions bot reopened this Aug 7, 2024
@robin-pham
Copy link
Contributor

Just to note this is a dupe of #3493

@ChrisBindy
Copy link
Author

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

@opesto
Copy link

opesto commented Sep 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants