Skip to main content

NativeModuleProps

react-native-iap / Exports / NativeModuleProps

Interface: NativeModuleProps

Common interface for all native modules (iOS — AppStore, Android — PlayStore and Amazon).

Hierarchy

Table of contents

Methods

Methods

addListener

addListener(eventType): void

addListener for NativeEventEmitter

Parameters

NameType
eventTypestring

Returns

void

Defined in

modules/common.ts:12


endConnection

endConnection(): Promise\<boolean>

Required method to end the payment provider connection

Returns

Promise\<boolean>

Defined in

modules/common.ts:9


initConnection

initConnection(): Promise\<boolean>

Required method to start a payment provider connection

Returns

Promise\<boolean>

Defined in

modules/common.ts:6


removeListeners

removeListeners(count): void

removeListeners for NativeEventEmitter

Parameters

NameType
countnumber

Returns

void

Defined in

modules/common.ts:15