RevenueCat / react-native-purchases

React Native in-app purchases and subscriptions made easy. Support for iOS and Android.
https://www.revenuecat.com
MIT License
691 stars 77 forks source link

new NativeEventEmitter() issue on expo 51 #999

Closed eds2002 closed 1 month ago

eds2002 commented 1 month ago

Using expo 51, I'm getting this error new NativeEventEmitter() requires a non-null argument. I've tried an eas build, I've also tried expo run:ios -d but I'm still getting the same error.

RCGitBot commented 1 month ago

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

sahalsaad commented 1 month ago

hi @eds2002 how do you fix this?

eds2002 commented 1 month ago

hi @eds2002 how do you fix this?

hey, dumb mistake but I realized react-native-purchases was installed in the root of my monorepo and not my native package.json. I made sure it was installed in my native package, prebuilt the app, and made an eas development build.