ReactNativeHost

abstract class ReactNativeHost

Simple class that holds an instance of ReactInstanceManager. This can be used in your class (see ReactApplication), or as a static field.

Inheritors

Functions

Link copied to clipboard
open fun clear()
Destroy the current instance and invalidate the internal ReactInstanceManager, reclaiming its resources and preventing it from being reused.
Link copied to clipboard
Returns whether view managers should be created lazily.
Link copied to clipboard
Get the current ReactInstanceManager instance, or create one.
Link copied to clipboard
Returns whether or not to treat it as normal if Activity is null.
Link copied to clipboard
Return the SurfaceDelegateFactory used by NativeModules to get access to a to interact with a surface.
Link copied to clipboard
Returns whether dev mode should be enabled.
Link copied to clipboard
open fun hasInstance(): Boolean
Get whether this holder contains a ReactInstanceManager instance, or not.