Main React Package
class MainReactPackage @JvmOverloads constructor(config: MainPackageConfig? = null) : BaseReactPackage, ViewManagerOnDemandReactPackage
Package defining basic modules and view managers.
Parameters
config
configuration for the Main package.
Properties
Link copied to clipboard
A map of view managers that should be registered with com.facebook.react.uimanager.UIManagerModule
Functions
Link copied to clipboard
Link copied to clipboard
open override fun createViewManager(reactContext: ReactApplicationContext, viewManagerName: String): ViewManager<*, *>?
Creates and returns a ViewManager with a specific name {@param viewManagerName}. It's up to an implementing package how to interpret the name.
Link copied to clipboard
open override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>>
Link copied to clipboard
The API needed for TurboModules. Given a module name, it returns an instance of NativeModule for the name
Link copied to clipboard
Link copied to clipboard
Provides a list of names of ViewManagers with which these modules can be accessed from JS. Typically, this is ViewManager.getName().
Link copied to clipboard