Repository navigation
react-native-iap 15.0.2
·
877 commits
to main
since this release
react-native-iap 15.0.2
Patch release that picks up the OpenIAP Google 1.3.31 native fixes. No direct JS API changes.
What's Changed
Two Android-side fixes delivered via the upgraded native library:
- Purchase flow double-resume crash fixed —
IllegalStateException: Already resumedcould hit whenrequestPurchasewas invoked twice in rapid succession (e.g. double-tap on the purchase button) because the shared billing callback slot was being overwritten. Google-side now usesAtomicReferencewithcompareAndSet, so a racing second call fails fast withOpenIapError.DeveloperErrorinstead of stranding the first continuation. (hyodotdev/openiap#94) - Subscription replacement mode values now track native Billing constants — The Kotlin-side mapping is sourced directly from
BillingFlowParams.ProductDetailsParams.SubscriptionProductReplacementParams.ReplacementModeinstead of hand-typed integers, so it cannot drift if Google renumbers the values. (hyodotdev/openiap#92)
Installation
npm install react-native-iap@15.0.2
# or
yarn add react-native-iap@15.0.2Android native dependency bumped automatically to io.github.hyochan.openiap:openiap-google:1.3.31.