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]: NewArch: Exception in setHandledMapChangedEvents when loading the map in RN 0.74.2 #3522

Open
kubabutkiewicz opened this issue Jun 12, 2024 · 2 comments
Labels
bug 🪲 Something isn't working

Comments

@kubabutkiewicz
Copy link

kubabutkiewicz commented Jun 12, 2024

Mapbox Implementation

Mapbox

Mapbox Version

default

React Native Version

0.74.2

Platform

Android

@rnmapbox/maps version

10.1.23

Standalone component to reproduce

// I couldn't reproduce it in example app
export default () => {}

Observed behavior and steps to reproduce

We are working in Expensify on upgrading RN version to 0.74.2 and we noticed the crash caused by rnmapbox. When we navigating to screen when we are displaying map we are getting this error Error: Exception in HostFunction: no non-static method "Lcom/rnmapbox/rnmbx/components/mapview/NativeMapViewModule;.setHandledMapChangedEvents(Ljava/lang/Double;Lcom/facebook/react/bridge/ReadableArray;Lcom/facebook/react/bridge/Promise;)V" . More context and logs are here.

Expected behavior

No response

Notes / preliminary analysis

No response

Additional links and references

rnmapbox-bug.mov

No response

@mfazekas
Copy link
Contributor

Should be fixed by #3527, there might be further similar issues

@mfazekas
Copy link
Contributor

See facebook/react-native#45024
facebook/react-native#44963

As expected there other issues as well.

#3511 (comment)

Could be worked around with patch-package, see mfazekas@dbcf2b1 for example

@mfazekas mfazekas changed the title [Bug]: Exception in setHandledMapChangedEvents when loading the map in RN 0.74.2 [Bug]: NewArch: Exception in setHandledMapChangedEvents when loading the map in RN 0.74.2 Jun 19, 2024
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

2 participants