There was a problem with the store.
at node_modules\react-native\Libraries\BatchedBridge\NativeModules.js:null in promiseMethodWrapper
at node_modules\react-native-purchases\dist\purchases.js:null in __generator$argument_1
at node_modules\react-native-purchases\dist\purchases.js:null in step
at node_modules\react-native-purchases\dist\purchases.js:null in fulfilled
at node_modules\react-native\node_modules\promise\setimmediate\core.js:null in tryCallOne
at node_modules\react-native\node_modules\promise\setimmediate\core.js:null in setImmediate$argument_0
at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in _allocateCallback$argument_0
at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in _callTimer
at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in _callReactNativeMicrotasksPass
at node_modules\react-native\Libraries\Core\Timers\JSTimers.js:null in callReactNativeMicrotasks
at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __callReactNativeMicrotasks
at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __guard$argument_0
at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in __guard
at node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:null in flushedQueue
Thats the complete error: and here is my code:
const awaitPurchases= () =>{
Purchases.setDebugLogsEnabled(true)
if(Platform.OS === 'android'){
Purchases.configure({apiKey: apikeyRevCat})
}
}
useEffect(() =>{
awaitPurchases()
},(])
And then in another screen:
const fetchOfferings= async () =>{
try{
const offerings= await Purchases.getOfferings()
console.log(offerings)
}catch(e){
console.log(e)
}
}
useEffect(()=>{
fetchOfferings()
},])