14.7.0 - PurchaseState Cleanup & API Consolidation
· One min read
14.7.0 reflects OpenIAP v1.3.11 updates with breaking changes that simplify the API surface.
Breaking Changes
PurchaseState Simplified
// Before
type PurchaseState = 'pending' | 'purchased' | 'failed' | 'restored' | 'deferred' | 'unknown';
// After
type PurchaseState = 'pending' | 'purchased' | 'unknown';
API Consolidation
alternativeBillingModeAndroid deprecated in favor of enableBillingProgramAndroid:
| Before (Deprecated) | After (Recommended) |
|---|---|
alternativeBillingModeAndroid: 'user-choice' | enableBillingProgramAndroid: 'user-choice-billing' |
alternativeBillingModeAndroid: 'alternative-only' | enableBillingProgramAndroid: 'external-offer' |
useAlternativeBilling Deprecated
RequestPurchaseProps.useAlternativeBilling is now deprecated. This field only logged debug info and had no effect on the purchase flow. Use enableBillingProgramAndroid in InitConnectionConfig instead.
OpenIAP Updates
- openiap-gql: 1.3.10 → 1.3.11
- openiap-google: 1.3.19 → 1.3.21
- openiap-apple: 1.3.8 → 1.3.9
Installation
npm install react-native-iap react-native-nitro-modules
Questions or feedback? GitHub issues.
