rnmapbox / maps

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

I Have Problem with Android Unsupported top level event type "topRct.mapbox.map.change" dispatched #3493

Closed mactung closed 5 months ago

mactung commented 5 months ago

Environment

Screenshot 2024-05-18 at 11 07 37

It alway show this message.. and i can't do anything. I placed MapView Into a Screen in BottomTabBar By React Native Navigation

And i don't have any problem On IOS with same code.

mfazekas commented 5 months ago

Please add a component reproducing the issue

mactung commented 5 months ago

please give me a example. Screenshot 2024-05-18 at 16 10 02 This is my code

mactung commented 5 months ago

Please add a component reproducing the issue

i really don't understand what is to do next. Please explain that. Tks

mfazekas commented 5 months ago

i really don't understand what is to do next. Please explain that. Tks

See https://stackoverflow.com/help/minimal-reproducible-example, write a simplified example that reproduces an issue and either include the code, or add a link to a GitHub repository.

adishare commented 2 months ago

I encountered the same problem when using React Native with the new architecture. I was able to resolve it by disabling the new architecture. To do this, I modified the newArchEnabled property in android/gradle.properties @mactung . idk why this issue closed @mfazekas

@rnmapbox/maps version: 10.1.28 React Native version: 0.74.3

mfazekas commented 2 months ago

@adishare please post an reproducible example I can copy paste into our example project and run. Screenshot of part of your code is not enough.

robin-pham commented 2 months ago

Here's a reproducible example: https://github.com/robin-pham/rnmapbox-event-name-reproduction I only configured it for the android build just to be speedy.

Screenshot 2024-08-06 at 11 40 23 AM

It's new architecture related, and the 'topRct' prefix is related to https://github.com/facebook/react-native/pull/42586 that normalizes event names. Otherwise I'm unsure of the code paths related to why rnmapbox's events aren't registered.

ChrisBindy commented 2 months ago

@mactung Did you ever find a solution to this problem? As im currently facing it myself.

opesto commented 1 month ago

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

mactung commented 1 month ago

@mactung Did you ever find a solution to this problem? As im currently facing it myself.

HI mate, i had move my project to flutter. Everything be find on flutter now. :)