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

fix(android): UIManagerModule fix for Bridgeless [0.74] #5058

Conversation

arushikesarwani94
Copy link
Contributor

Does any other open PR do the same thing?

No

What issue is this PR fixing?

Following APIs will be broken in Bridgeless mode after #4985 adds support for Bridgeless in React Native 0.74 on Android :

  • takeSnapshot()
  • getCamera()
  • getAddressFromCoordinates()
  • pointForCoordinate()
  • coordinateForPoint()
  • getMapBoundaries()

Since these depend on context.getNativeModule(UIManagerModule.class):

which returns null in Bridgeless

https://github.com/facebook/react-native/blob/main/packages/react-native/ReactAndroid/src/main/java/com/facebook/react/runtime/ReactHostImpl.java#L600-L606

How did you test this PR?

Test takeSnapshot() functionality for Android in Bridgeless

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant