Skip to main content
Solved

are RC docs outdated? cannot import purchases

  • Feb 16, 2024 8:23 PM UTC
  • 3 replies
  • 480 views

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
This post has been closed for comments

3 replies

Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • Answer
  • Feb 20, 2024 5:15 PM UTC

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
  • Feb 20, 2024 5:56 PM UTC

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
  • Feb 20, 2024 6:01 PM UTC

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