React
    A ReactHost is an object that manages a single ReactInstance. A ReactHost can be constructed without initializing the ReactInstance, and it will continue to exist after the instance is destroyed. This class ensures safe access to the ReactInstance and the JS runtime; methods that operate on the instance use Bolts Tasks to defer the operation until the instance has been initialized. They also return a Task so the caller can be notified of completion.
See also
<a href="https://github.
Constructors
Link copied to clipboard
                  constructor(context: Context, delegate: ReactHostDelegate, componentFactory: ComponentFactory, allowPackagerServerAccess: Boolean, useDevSupport: Boolean)
constructor(context: Context, delegate: ReactHostDelegate, componentFactory: ComponentFactory, bgExecutor: Executor, uiExecutor: Executor, allowPackagerServerAccess: Boolean, useDevSupport: Boolean)
constructor(context: Context, delegate: ReactHostDelegate, componentFactory: ComponentFactory, bgExecutor: Executor, uiExecutor: Executor, allowPackagerServerAccess: Boolean, useDevSupport: Boolean, @Nullable devSupportManagerFactory: DevSupportManagerFactory)
Functions
Link copied to clipboard
                  Link copied to clipboard
                  Add a listener to be notified of ReactInstance events.
Link copied to clipboard
                  open fun createSurface(context: Context, moduleName: String, @Nullable initialProps: Bundle): ReactSurface
To be called to create and setup an ReactSurface.
Link copied to clipboard
                  Returns current ReactContext which could be nullable if ReactInstance hasn't been created.
Link copied to clipboard
                  DevSupportManager used by this ReactHost
Link copied to clipboard
                  The current LifecycleState for React Host
Link copied to clipboard
                  Routes memory pressure events to interested components
Link copied to clipboard
                  ReactQueueConfiguration for caller to post jobs in React Native threads
Link copied to clipboard
                  Permanently destroys the ReactHost, including the ReactInstance (if any).
Link copied to clipboard
                  Link copied to clipboard
                  To be called when back button is pressed
Link copied to clipboard
                  Link copied to clipboard
                  To be called when the host activity is destroyed.
Link copied to clipboard
                  To be called when the host activity is about to go into the background as the result of user choice.
Link copied to clipboard
                  To be called when the host activity is paused.
Link copied to clipboard
                  open fun onHostResume(@Nullable activity: Activity, @Nullable defaultBackButtonImpl: DefaultHardwareBackBtnHandler)
To be called when the host activity is resumed.
Link copied to clipboard
                  Link copied to clipboard
                  Link copied to clipboard
                  Entrypoint to reload the ReactInstance.
Link copied to clipboard
                  Link copied to clipboard
                  Remove a listener previously added with addReactInstanceEventListener.
Link copied to clipboard
                  This function can be used to initialize the ReactInstance in a background thread before a surface needs to be rendered.