MainReactPackage

Package defining basic modules and view managers.

Parameters

config

configuration for the Main package.

Constructors

Link copied to clipboard
constructor(config: MainPackageConfig? = null)

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
open override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule?

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
open override fun getViewManagers(reactContext: ReactApplicationContext): List<ModuleSpec>