Skip to main content
Solved

`new NativeEventEmitter` requires a non-null argument

  • 14 August 2024
  • 2 replies
  • 66 views

Using react-native-purchases package at version 8.0.1 on an Expo project at version 51.0.22

Trying to run Purchases.configure throws the error.

useEffect(() => {
if (Platform.OS === "ios") {
Purchases.configure({ apiKey: "<OBSCURED>" })
}
}, ,])

 

The solution was to create a new development build after installing the package. The documentation makes it seem like you should create a build, then install the package. I might recommend updating that.


Hi @stephen-gladney-e19f45,

Thank you for your feedback! We’ll take note of it and make sure to improve it.

 

Best,