I am trying to use Purchases in an expo project.
If I build with xcode, everything is fine.
However, we rely on the expo development build during development. Because ain’t nobody got time for xcode.
If I try to run with the expo dev server (npx expo run:ios) then I get the error ERROR Invariant Violation: `new NativeEventEmitter()` requires a non-null argument., js engine: hermes
this happens at the time of import of Purchases (import Purchases from “react-native-purchases”).
I followed the standard installation and usage for expo.
It looks like this might be some sort of incompatibility with NativeViewGestureHandler because that also starts generating errors only when I try to import Purchases.
Note that I know that purchases probably won’t work in this mode, at least on the simulator, but it shouldn’t crash the app. That makes for some really challenging dx.