react-native-iap will help you access the In-App purchases capabilities of your device on iOS, and Android (Play Store and Amazon). In order to initialize the native modules, call initConnection() early in the lifecycle of your application. This should be done at a top-level component as the library caches the native connection. Initializing just before you needed is discouraged as it incurs on a performance hit. Calling this method multiple times without ending the previous connection will result in an error. Not calling this method will cause other method calls to be rejected as a connection needs to be established ahead of time. You should not call initConnection and endConnection every time you need to interact with the library. This is considered an anti-pattern as it consumes more time, and resources and could lead to undesired side effects such as many callbacks.
Features
- Access the In-App purchases capabilities of your device on iOS
- Available for Android
- This library will provide the basic features to consume In-App purchases on the client-side
- Requires react 16.13.1
- Needs react-native 0.65.1
- Android Support
- AndroidX supported