Hello,
If you get the error :
TypeError: _reactNativePurchases.default.setup is not a function
The getting started for RN is not up to date.
The Purchases.setup("public_ios_sdk_key") is no more available.
https://docs.revenuecat.com/docs/getting-started#7-configure-the-sdk
You should use Purchases.configure({ apiKey: "public_ios_sdk_key" }) instead.
https://docs.revenuecat.com/docs/configuring-sdk#initialization
Documentation is not up to date
+5
Thanks
Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.