Expo: NativeEventEmitter requires a non-null argument with react-native-purchases (fixed in 5.0.0)

Using react-native-purchases in an Expo Go / managed workflow app crashed with Invariant Violation: new NativeEventEmitter() requires a non-null argument when calling Purchases.configure or Purchases.setup. The native module was not linked, so the bridge object was null. The crash happened on both Purchases.setup and Purchases.configure calls.

Upgrade react-native-purchases to 5.0.0; a reporter confirmed the 5.0.0 release works in the managed Expo workflow. In Expo Go specifically, native modules are not available, so for Expo Go builds use a development build (EAS) instead, per RevenueCat's Expo docs. The 5.0.0 release was the one that made the managed-workflow install path work. Source: https://github.com/RevenueCat/react-native-purchases/issues/379