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 · 9 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?

@Nachox07
Copy link

Could we please get an update here? This is a blocker for me to use the new architecture in my app

@connorpmullins
Copy link

Related bug in other libraries:

Seems like maybe some handler isn't getting registered? I'll keep looking into this a little bit more.

@connorpmullins
Copy link

@mfazekas - Have you considered using Opire or anything similar to enable bounties on bugs like this one?

I'm not sure it's what you want to do. If it is, though, Omnia would likely be willing to chip in on issues like this one given how heavily we rely on this project in production.

@mfazekas
Copy link
Contributor

Can you try https://github.com/rnmapbox/maps/releases/tag/v10.1.32-rc.0 it contains #3656, which might fix the issue.

@ChrisBindy
Copy link
Author

ChrisBindy commented Oct 16, 2024

@mfazekas this RC version has stopped the errors in the console and stopped the crash when opening the map on device

Edit: nvm it is working, thanks for all your help

@conor909
Copy link

conor909 commented Oct 26, 2024

I'm seeing this error on Android with the release candidate above

"@rnmapbox/maps": "10.1.32-rc.0",
"react-native": "0.74.5",
"expo": "51.0.38"

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

7 participants