Skip to main content
Answer

are RC docs outdated? cannot import purchases

  • February 16, 2024
  • 3 replies
  • 118 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.

This post has been closed for comments

3 replies

Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 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
  • 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
  • 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