@venom42/react-native-purchases
v0.1.1
Published
> TODO: description
Readme
react-native-libs - purchases
Getting started
$ npm install @venom42/react-native-purchases
Mostly automatic installation
$ react-native link react-native-iap
Android
- Open up android/app/src/main/java/[...]/MainApplication.java
- Add import
com.dooboolab.RNIap.RNIapPackage;to the imports at the top of the file - Add
new RNIapPackage()`` to the list returned by thegetPackages()` method
Manual installation
https://github.com/dooboolab/react-native-iap#manual-installation
Usage
import Purchases from 'react-native-purchases'
// TODO: What to do with the module?
RNPurchases;