Expo Go doesn’t build native modules, so you may run into this error while trying to run your app with react-native-purchases in Expo Go.
In order to use RevenueCat with Expo, you will have to create Development Builds, which can be done either by using EAS, or by making builds that are compatible with Xcode and Android Studio.
There are detailed instructions for doing either one in this page:
Easiest way to be able to debug is to just run either of the following:
npx expo run:android -d
npx expo run:ios -d
We also have a blog post that goes step-by-step into how to make an app with Expo and RevenueCat using EAS: https://www.revenuecat.com/blog/in-app-puchase-expo-managed-workflow/
Let us know if you run into any issues!