This is an Iaptic-maintained fork of react-native-iap@12.16.4 (which has been archived upstream).
The fork exists to ship a single fix needed to build on React Native ≥ 0.83 / Expo SDK ≥ 55 / new architecture: under RCT_NEW_ARCH_ENABLED=1, RNIap.podspec now uses React Native's install_modules_dependencies(s) helper instead of declaring RCT-Folly / RCTRequired / RCTTypeSafety / ReactCommon/turbomodule/core directly. RN ≥ 0.83 ships those inside the prebuilt ReactNativeDependencies pod and no longer publishes them as standalone podspecs, which broke the upstream podspec.
The JavaScript/TypeScript API and the Java / Obj-C / Swift native code are unchanged from 12.16.4. This fork is intended for use as the IAP layer under react-native-iaptic; other users may install it directly if they're stuck on the same RN 0.83 build error.
If you came here looking for the actively-developed react-native-iap, head to hyodotdev/openiap → libraries/react-native-iap (v15+, Nitro Modules-based). That's the long-term direction; this fork is a stop-gap on the v12.x line.
Announcing the Migration of react-native-iap to an Expo Module for Improved Maintenance and Compatibility in discussion #2754.
The expo-iap library is now ready to use, with support for StoreKit 2 and Google Play Billing.
Read the documentation. See the troubleshooting for the common issues to avoid.
-
Version
12.0.0: Implements Amazon 3.x SDK including the new DRM verification. -
Version
11.0.0: The module migrates OS sdk to storekit2. andresesfm is working hard on this.yarn add react-native-iap@next -
Version
10.0.0is a maintenance build. Many internal refactorings and clean up of the code. Special thanks to jeremybarbet for his contributions. Most notably all methods now take an object parameter instead of separate parameters. Please help us test -
Version
9.0.0The module migrates android sdk to play billing library v5. Our core maintainers andresesfm and jeremybarbet worked hard on this. -
Version
8.0.0has finally landed in Jan 28th. Since this is early release, please use it with caution 🚧. We recommend user to use>=8.0.0with react-native>=0.65.1. Thenextpackage is no longer updated until we organize the roadmap for9.0.0. -
Version
8.0.0is currently in release candidate. The module is completely rewritten withKotlinandSwiftfor maintenance issue by andresesfm 🔆. You may install this for early preview. -
React Native IAP hook is out. You can see medium post on how to use it.
-
The
react-native-iapmodule hasn't been maintained well recently. We are thinking of participating again and make the module healthier. Please refer to 2021 Maintenance plan and share with us how you or your organization is using it. Happy new year 🎉- The sample code is out in crossplatformkorea/CPK/pull/12. More information in #1241 commment.
- Please refer to this Blog post.
Follow this guide to get the example running.
Support this project by becoming a sponsor. Your logo will show up here with
a link to your website. Buy me a coffee or
Become a sponsor.
Please take a look at iap.dev/consulting. At iap.dev, we offer IAP consulting services for all platforms. Please Contact Us.
Note: This service is not affiliated with hyochan. It was created by andresesfm who has contributed and provided support for this project
Please be our Backers.
Please make sure to read the Contributing Guide before making a pull request. Thank you to all the people who helped to maintain and upgrade this project!
