Is there an Android equivalent for the RCTJavaScriptDidLoadNotification event in a-native reaction?

When writing native iOS modules for responsive-native, you can sign up for a notification RCTJavaScriptDidLoadNotification. This allows for some additional custom configuration after the JS package has been loaded into the environment.

As far as I can see, there is nothing equivalent when writing Android modules (unless it has a different name). There initialize, which you can override from ReactContextBaseJavaModule, but this seems to be called before the JS package has been downloaded.

Is there an Android equivalent for notification / event RCTJavaScriptDidLoadNotification?

+4
source share
1 answer

onReactContextInitialized

@Override
public void onReactContextInitialized(ReactContext context) {
    Log.d(TAG, "Here your valid ReactContext");
}
0

Source: https://habr.com/ru/post/1685896/


All Articles