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 issue on bridgeless when accessing ReactContext #3366

Conversation

alanjhughes
Copy link
Contributor

Using getJavaScriptContextHolder on the ReactContext will result in a crash because the catalystInstance is null in bridgeless. We should call it on the ReactApplicationContext which will use the BridgelessReactContext to return a valid JavaScriptContextHolder.

After the change, the issue is fixed and example app works as before.

@Titozzz Titozzz merged commit ab420a0 into react-native-webview:master Mar 28, 2024
11 checks passed
react-native-community-bot pushed a commit that referenced this pull request Mar 28, 2024
## [13.8.3](v13.8.2...v13.8.3) (2024-03-28)

### Bug Fixes

* issue on bridgeless when accessing ReactContext (preparing RN74) ([#3366](#3366)) ([ab420a0](ab420a0))
@react-native-community-bot
Copy link
Collaborator

🎉 This PR is included in version 13.8.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

4 participants