Default React Activity Delegate
open class DefaultReactActivityDelegate(activity: ReactActivity, mainComponentName: String, fabricEnabled: Boolean = false) : ReactActivityDelegate
A utility class that allows you to simplify the setup of a ReactActivityDelegate for new apps in Open Source.
Specifically, with this class you can simply control if Fabric is enabled for an Activity using the boolean flag in the constructor.
Parameters
fabric Enabled
Whether Fabric should be enabled for the RootView of this Activity.
Constructors
Link copied to clipboard
constructor(activity: ReactActivity, mainComponentName: String, fabricEnabled: Boolean, concurrentReactEnabled: Boolean)
Functions
Link copied to clipboard
Get the current ReactContext from ReactHost or ReactInstanceManager
Link copied to clipboard
Link copied to clipboard
Get the ReactHost used by this app with Bridgeless enabled. By default, assumes getApplication is an instance of ReactApplication and calls getReactHost. Override this method if your application class does not implement ReactApplication
or you simply have a different mechanism for storing a ReactHost
, e.g. as a static field somewhere.
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
open fun onRequestPermissionsResult(requestCode: Int, permissions: Array<String>, grantResults: IntArray)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun requestPermissions(permissions: Array<String>, requestCode: Int, listener: PermissionListener)
Link copied to clipboard
Link copied to clipboard