ReactHostDelegate

ReactHostDelegate is an interface that defines parameters required to initialize React Native. This interface works in combination with ReactHost

Inheritors

Properties

Link copied to clipboard

Object that holds a native C++ references that allow host applications to install C++ objects into jsi::Runtime during the initialization of React Native

Link copied to clipboard

Bundle loader to use when setting up JS environment.

Example: JSBundleLoader.createFileLoader(application, bundleFile)

Link copied to clipboard
abstract val jsMainModulePath: String

Path to your app's main module on Metro. This is used when reloading JS during development. All paths are relative to the root folder the packager is serving files from. Examples: index.android or subdirectory/index.android

Link copied to clipboard

Object that holds a native reference to the javascript engine

Link copied to clipboard

list of ReactPackage to expose Native Modules and View Components to JS

Link copied to clipboard

TODO: combine getTurboModuleManagerDelegate inside ReactPackage

Functions

Link copied to clipboard
abstract fun handleInstanceException(error: Exception)

Callback that can be used by React Native host applications to react to exceptions thrown by the internals of React Native.