Skip to main content
Solved

are RC docs outdated? cannot import purchases


Forum|alt.badge.img+5

following the docs but react native with expo doesn’t recognize purchases
https://www.revenuecat.com/docs/getting-started/quickstart#4-using-revenuecats-purchases-sdk 

 

ERROR  ReferenceError: Property 'Purchases' doesn't exist

This error is located at:
    in App (at withDevTools.js:18)
    in withDevTools(App) (at renderApplication.js:57)
    in RCTView (at View.js:116)
    in View (at AppContainer.js:127)
    in RCTView (at View.js:116)
    in View (at AppContainer.js:155)
    in AppContainer (at renderApplication.js:50)
    in main(RootComponent) (at renderApplication.js:67), js engine: hermes
 ERROR  ReferenceError: Property 'Purchases' doesn't exist

Best answer by Ryan Glanz

Hi,

Happy to help here. Have you seen this guide as well? I’ve followed this one recently and it works.

I’ll take a look at the doc you linked and make sure nothing’s out of date.

View original
Did this post help you find an answer to your question?
This post has been closed for comments

3 replies

Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 383 replies
  • Answer
  • February 20, 2024

Hi,

Happy to help here. Have you seen this guide as well? I’ve followed this one recently and it works.

I’ll take a look at the doc you linked and make sure nothing’s out of date.


Forum|alt.badge.img+5
  • Author
  • Helper
  • 22 replies
  • February 20, 2024

yes it was my mistake, I messed up my installation because It’s my first time using expo

with expo you don’t have to follow a bunch of react native steps.


Forum|alt.badge.img+5
  • Author
  • Helper
  • 22 replies
  • February 20, 2024

although this guide is actually outdated or has a mistake in the “make a purchase” section
https://www.revenuecat.com/docs/getting-started/quickstart#4-using-revenuecats-purchases-sdk


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings