React Delegate
A delegate for handling React Application support. This delegate is unaware whether it is used in an Activity or a android.app.Fragment.
Constructors
Link copied to clipboard
constructor(activity: Activity, reactNativeHost: ReactNativeHost, @Nullable appKey: String, @Nullable launchOptions: Bundle)
Do not use this constructor as it's not accounting for New Architecture at all.
Functions
Link copied to clipboard
Get the current ReactContext from ReactHost or ReactInstanceManager Do not store a reference to this, if the React instance is reloaded or destroyed, this context will no longer be valid.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Start the React surface with the app key supplied in the ReactDelegate constructor.
Start the React surface for the given app key.
Link copied to clipboard
open fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent, shouldForwardToReactInstance: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Handles delegating the onKeyUp method to determine whether the application should show the developer menu or should reload the React Application.