Closed stack-Rambo closed 1 month ago
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
Seems fine for me on Android build but fails on iOS. Expo SDK 51.0.7
@stack-Rambo you must have upgraded from one major version to another, and hit some breaking changes.
There's no Purchases.setup()
anymore, try:
Purchases.configure({ apiKey })
@stack-Rambo As @rikur said, please use configure
instead of setup
. Documentation.
This is the error i got while implementing Revenue cat SDK in react native latest version 0.74 ERROR Error configuring Purchases: [TypeError: _reactNativePurchases.default.setup is not a function (it is undefined)] This is the simple code i used . step1: downladed the package : npx install react-native-purchases step2: wrote this code in App.js file in React native and the above error message is displayed step3: code for APP.js import React,{useEffect} from 'react'; import { StatusBar } from 'react-native'; import Purchases from 'react-native-purchases'; import Router from './src/Route'; import { API_KEY } from './src/constants';
const App = () => { useEffect(() => { const configurePurchases = async () => { Purchases.setLogLevel(Purchases.LOG_LEVEL.DEBUG); try {
}, []);
return ( <>
); };
export default App;