IReactModuleBuilder
Kind: interface
Builds native module inside of ReactNative code based on the provided meta-data. See Native Modules for more usage information.
Methods
AddConstantProvider
void AddConstantProvider
(ConstantProviderDelegate
constantProvider)
Adds a constant provider method to define constants for the native module. See ConstantProviderDelegate
.
AddInitializer
void AddInitializer
(InitializerDelegate
initializer)
Adds an initializer method called on the native module initialization.
It provides the native module with the IReactContext
for the running ReactNative instance. See InitializerDelegate
.
There can be multiple initializer methods which are called in the order they were registered.
AddMethod
void AddMethod
(string name, MethodReturnType
returnType, MethodDelegate
method)
Adds an asynchronous method to the native module. See MethodDelegate
.
AddSyncMethod
void AddSyncMethod
(string name, SyncMethodDelegate
method)
Adds a synchronous method to the native module. See SyncMethodDelegate
.