Solved

are RC docs outdated? cannot import purchases

  • 16 February 2024
  • 3 replies
  • 22 views

Badge +4

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

icon

Best answer by Ryan Glanz 20 February 2024, 18:15

View original

This post has been closed for comments

3 replies

Userlevel 3
Badge +8

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.

Badge +4

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.

Badge +4

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