NativeModule

interface NativeModule

A native module whose API can be provided to JS catalyst instances. NativeModules whose implementation is written in Java should extend BaseJavaModule or . NativeModules whose implementation is written in C++ must not provide any Java code (so they can be reused on other platforms), and instead should register themselves using CxxModuleWrapper.

Inheritors

Functions

Link copied to clipboard
Return true if you intend to override some other native module that was registered e.g.
Link copied to clipboard
abstract fun getName(): String
Link copied to clipboard
abstract fun initialize()
This method is called after ReactApplicationContext has been created.
Link copied to clipboard
abstract fun invalidate()
Allow NativeModule to clean up.
Link copied to clipboard
Allow NativeModule to clean up.