Importing Native Module in JS
class PayContactlessSDKPackage : ReactPackage {
override fun createNativeModules(reactContext: ReactApplicationContext): List<NativeModule> {
return listOf(PayContactlessSDKModule(reactContext))
}
override fun createViewManagers(reactContext: ReactApplicationContext): List<ViewManager<*, *>> {
return emptyList()
}
}
Registering the Bridge Package
@Override
protected List getPackages() {
return Arrays.asList(
new MainReactPackage(),
new PayContactlessSDKPackage()
);
}Importing the Native Module in JS
Class / Interface
Type
Properties
Description
Used In
Last updated

