Skip to main content
SDK

React Native 5.0.0-beta.2

React Native 5.0.0-beta.2
RC Support
RevenueCat Staff
Forum|alt.badge.img+3

⚠️⚠️ This is a pre-release version. ⚠️⚠️

StoreKit 2 support

This version of the SDK automatically uses StoreKit 2 APIs under the hood only for APIs that the RevenueCat team has determined work better than StoreKit 1.

New types and cleaned up naming

New types that wrap native types from Apple, Google and Amazon, and we cleaned up the naming of other types and methods for a more consistent experience.

Removed APIs

  • setUp has been removed in favor of configure
  • identify and createAlias have been removed in favor of logIn.
  • reset has been removed in favor of logOut.
  • addAttributionData has been removed in favor of set<NetworkID> methods.
  • PurchasesStoreProduct: removed intro_price_string, intro_price_period, intro_price_cycles, intro_price_period_unit, intro_price_period_number_of_units in favor of new introPrice: PurchasesIntroPrice.

Renamed APIs

4.x 5.0.0
PurchaserInfo CustomerInfo
PurchasesProduct PurchasesStoreProduct
PurchasesStoreProductProduct.price_string PurchasesStoreProductProduct.priceString
PurchasesStoreProductProduct.currency_code PurchasesStoreProductProduct.currencyCode
PurchasesTransaction PurchasesStoreTransaction
PurchasesDiscount PurchasesStoreProductDiscount
PurchasesPaymentDiscount PurchasesPromotionalOffer
Purchases.restoreTransactions Purchases.restorePurchases
Purchases.getPaymentDiscount Purchases.getPromotionalOffer
Purchases.invalidatePurchaserInfoCache Purchases.invalidateCustomerInfoCache
Purchases.addPurchaserInfoUpdateListener Purchases.addCustomerInfoUpdateListener
Purchases.removePurchaserInfoUpdateListener Purchases.removeCustomerInfoUpdateListener

Known issues:

  • Amazon support currently doesn't work correctly.

To view new release, visit https://github.com/RevenueCat/react-native-purchases/releases/tag/5.0.0-beta.2

This post has been closed for comments

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings