Skip to main content
Question

is Purchases.configure a Promise?

  • September 9, 2024
  • 1 reply
  • 78 views

Forum|alt.badge.img+8

The documentation suggests Purchases.configure() is async because of the await in the Configuration docs.  
However, the React Native TypeScript definition says (args: PurchasesConfiguration) => void, so no promise.

 

Which is it?

I am using "react-native-purchases": "^7.1.0".

This post has been closed for comments

1 reply

wes_clark
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • December 10, 2024

Hi! I apologize for the delay. We are going through old unanswered posts. No, you do not need the await. I will work on updating the documentation.