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.
Using
getJavaScriptContextHolder
on theReactContext
will result in a crash because thecatalystInstance
is null in bridgeless. We should call it on theReactApplicationContext
which will use theBridgelessReactContext
to return a validJavaScriptContextHolder
.After the change, the issue is fixed and example app works as before.