NativeModuleProps
react-native-iap / Exports / NativeModuleProps
Interface: NativeModuleProps
Common interface for all native modules (iOS — AppStore, Android — PlayStore and Amazon).
Hierarchy
NativeModuleProps
Table of contents
Methods
Methods
addListener
▸ addListener(eventType
): void
addListener for NativeEventEmitter
Parameters
Name | Type |
---|---|
eventType | string |
Returns
void
Defined in
endConnection
▸ endConnection(): Promise
\<boolean
>
Required method to end the payment provider connection
Returns
Promise
\<boolean
>
Defined in
initConnection
▸ initConnection(): Promise
\<boolean
>
Required method to start a payment provider connection
Returns
Promise
\<boolean
>
Defined in
removeListeners
▸ removeListeners(count
): void
removeListeners for NativeEventEmitter
Parameters
Name | Type |
---|---|
count | number |
Returns
void