IReactPackageBuilder
Kind: interface
Builds ReactNative package with the set of native modules and view managers.
Methods
AddModule
void AddModule
(string moduleName, ReactModuleProvider
moduleProvider)
Adds a custom native module. See ReactModuleProvider
.
AddTurboModule
void AddTurboModule
(string moduleName, ReactModuleProvider
moduleProvider)
Adds a custom native module. See ReactModuleProvider
. This will register themodule as a TurboModule unless the application is running using ReactInstanceSettings.UseWebDebugger
,in which case it will revert to a legacy NativeModule.
NOTE: TurboModules using JSI directly will not run correctly while using ReactInstanceSettings.UseWebDebugger
AddViewManager
void AddViewManager
(string viewManagerName, ReactViewManagerProvider
viewManagerProvider)
Adds a custom view manager. See ReactViewManagerProvider
.