Skip to main content
Solved

are RC docs outdated? cannot import purchases

  • 16 February 2024
  • 3 replies
  • 28 views

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

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.


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.


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