You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm migrating to 11 and the migration guide says that now, we must import platform-exclusive methods through 'IapAndroid', 'IapAmazon', 'IapIos' or 'IapIosSk2', giving the example of 'IapAndroid.validateReceiptAndroid' (https://react-native-iap.dooboolab.com/docs/migrate_to_11.0.0).
In my case, the only exclusive method seems to be 'flushFailedPurchasesCachedAsPendingAndroid', but if I try to import it through 'IapAndroid', I have a type error.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm migrating to 11 and the migration guide says that now, we must import platform-exclusive methods through 'IapAndroid', 'IapAmazon', 'IapIos' or 'IapIosSk2', giving the example of 'IapAndroid.validateReceiptAndroid' (https://react-native-iap.dooboolab.com/docs/migrate_to_11.0.0).
But the documentation about 'validateReceiptAndroid' still imports it from 'react-native-iap' (https://react-native-iap.dooboolab.com/docs/api-reference/methods/android/validate-receipt-android).
In my case, the only exclusive method seems to be 'flushFailedPurchasesCachedAsPendingAndroid', but if I try to import it through 'IapAndroid', I have a type error.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions