Catalyst Instance Impl
This provides an implementation of the public CatalystInstance instance. It is public because it is built by XReactInstanceManager which is in a different package.
Functions
Link copied to clipboard
Adds a idle listener for this Catalyst instance.
Link copied to clipboard
Link copied to clipboard
This method and the native below permits a CatalystInstance to extend the known Native modules.
Link copied to clipboard
Link copied to clipboard
Do not use this anymore.
Link copied to clipboard
Returns a hybrid object that contains a pointer to a JS CallInvoker, which is used to schedule work on the JS Thread.
Link copied to clipboard
Link copied to clipboard
Returns a hybrid object that contains a pointer to a NativeMethodCallInvoker, which is used to schedule work on the NativeModules thread.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Return the source URL of the JS Bundle that was run, or
null
if no JS bundle has been run yet.Link copied to clipboard
Called when the system generates a memory warning.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Initialize all the native modules
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun loadScriptFromAssets(assetManager: AssetManager, assetURL: String, loadSynchronously: Boolean)
Load a JS bundle from Android assets.
Link copied to clipboard
Load a JS bundle from the filesystem.
Link copied to clipboard
Load a split JS bundle from the filesystem.
Link copied to clipboard
This method registers the file path of an additional JS segment by its ID.
Link copied to clipboard
Removes a NotThreadSafeBridgeIdleDebugListener previously added with addBridgeIdleDebugListener
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
This API is used in situations where the JS bundle is being executed not on the device, but on a host machine.
Link copied to clipboard