Skip to main content
Solved

`new NativeEventEmitter` requires a non-null argument


Forum|alt.badge.img+2

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.

View original
Did this post help you find an answer to your question?
This post has been closed for comments

2 replies

Forum|alt.badge.img+2

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
  • 205 replies
  • 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,


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings