Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add macOS support - Invariant Violation new NativeEventEmitter #405

Open
elmcapp opened this issue Aug 15, 2022 · 9 comments
Open

Add macOS support - Invariant Violation new NativeEventEmitter #405

elmcapp opened this issue Aug 15, 2022 · 9 comments
Labels
enhancement New feature or request triaged

Comments

@elmcapp
Copy link

elmcapp commented Aug 15, 2022

I am trying to use revenuecat with React Native for macOS however I get the following error. Invariant Violation new NativeEventEmitter requires a non-null argument.

I like to know if revenuecat supports React Native for macOS. If not could you please add support for this

@elmcapp elmcapp added the bug Something isn't working label Aug 15, 2022
@RCGitBot
Copy link
Contributor

RCGitBot commented Aug 15, 2022

👀 SDKONCALL-97 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

@joshdholtz
Copy link
Member

@elmcapp Thanks for reaching out! Our React Native SDK does not currently support macOS but it is on a radar to add support for now! I don't think I have a time frame of when that will get added yet but we'll keep this issue open and close it when its added 😊

@joshdholtz joshdholtz changed the title Invariant Violation new NativeEventEmitter Add macOS support - Invariant Violation new NativeEventEmitter Aug 15, 2022
@joshdholtz joshdholtz added triaged enhancement New feature or request and removed bug Something isn't working labels Aug 15, 2022
@liquidvisual
Copy link

I'm getting the same error message from just running import Purchases from "react-native-purchases" on iOS under React Native - what does this mean?

@pankti16
Copy link

I'm getting the same error message from just running import Purchases from "react-native-purchases" on iOS under React Native - Expo

"expo": "^45.0.0",
"react-native-purchases": "^5.0.0"

@aboedo
Copy link
Member

aboedo commented Sep 23, 2022

@pankti16 for Expo, you will have to make Development builds in order for the SDK to work.

This is documented here:
https://www.revenuecat.com/docs/reactnative#option-2-using-expo

The easiest way to get it done is by doing a development build running one of the following:

npx expo run:ios -d
npx expo run:android -d

@aboedo
Copy link
Member

aboedo commented Sep 23, 2022

note that RevenueCat doesn't currently support react-native for macOS, so these instructions are for iOS and Android

@elmcapp
Copy link
Author

elmcapp commented Sep 28, 2022

@joshdholtz @aboedo Is it possible that we could have an update soon to include this. It's really needed. I did a little testing this weekend I was able to use some of the native code for RevenueCat macOS and pass the data to react native bridge. Everything works however on the end of the users we have to write the native code then write the code for react native side. Is there any way we would have React Native for macOS included in the next update or a beta update of RevenueCat

@max-tern
Copy link

max-tern commented Apr 9, 2023

hey, get the same error when running just React-Native (not expo). Clean project 0.71 RN adding SDK got this error.

@vegaro
Copy link
Contributor

vegaro commented Apr 14, 2023

@max-tern Do you mind creating a new issue for that? Since it looks like you're getting it on a non-macOS device, we should be tracking it as a separate issue. Thanks!

@RevenueCat RevenueCat deleted a comment from RCGitBot May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triaged
Projects
None yet
Development

No branches or pull requests

8 participants