Skip to main content
Question

Purchases.configure is not a function error on Expo

  • Dec 16, 2024 9:24 PM UTC
  • 2 replies
  • 463 views

Forum|alt.badge.img+1

Hey everbody i got some issue. The problem is  “Purchases.configure is not a function (it is undefined)] [Component Stack]”. I am using like this 

 but this func returned  

how can i fix that ? I’am using expo@52 

This post has been closed for comments

2 replies

Forum|alt.badge.img+4
  • Member
  • Dec 17, 2024 7:46 PM UTC

Merhaba

offerings.current?.availablePackages

bu şekilde çekebilirmisiniz


Forum|alt.badge.img+8
  • RevenueCat Staff
  • Jan 6, 2025 3:05 PM UTC

Hi, sorry for the delay here. Can you please make sure to have properly installed our SDK following our guide here: https://www.revenuecat.com/docs/getting-started/installation/reactnative#option-2-using-expo

Please also follow our guide here to configure our SDK: https://www.revenuecat.com/docs/getting-started/quickstart#initialize-and-configure-the-sdk

It might be that having configure inside of that hook is causing a problem so if it still isn’t working after double-checking our docs then I would try calling it outside of that similar to our configuring SDK code above.