Skip to main content
Answer

`new NativeEventEmitter` requires a non-null argument

  • August 14, 2024
  • 2 replies
  • 1907 views

Forum|alt.badge.img+3

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>" })
}
}, [])

 

Best answer by stephen-gladney-e19f45

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.

This post has been closed for comments

2 replies

Forum|alt.badge.img+3

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.


joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • August 16, 2024

Hi @stephen-gladney-e19f45,

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

 

Best,