react-native-webview / react-native-webview

React Native Cross-Platform WebView
https://github.com/react-native-community/discussions-and-proposals/pull/3
MIT License
6.31k stars 2.96k forks source link

Fix issue on bridgeless when accessing ReactContext #3366

Closed alanjhughes closed 3 months ago

alanjhughes commented 3 months ago

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.

react-native-community-bot commented 3 months ago

:tada: This PR is included in version 13.8.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: