-
Notifications
You must be signed in to change notification settings - Fork 376
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
Invariant Violation: new NativeEventEmitter()
requires a non-null argument
#1361
Comments
Welp, I deleted |
@richardgirges Im getting the same error with expo SDK 51 and react native 0.74.5 on a development build.. Not sure what to do to fix that |
this is also happening to me, I still don't know the cause (removing and re-adding following onesignal's instructions did not help). I guess it's related to this line
NativeModules.OneSignal also being null here: react-native-onesignal/src/index.ts Line 42 in 0fa9e05
But I don't understand why would NativeModules, that come directly from 'react-native', would have a module called OneSignal. Maybe it should be added by some step that isn't running, but I can't figure out which one it is. This is a small app that was recently migrated to RN 0.76.2, but I never really managed to put OneSignal to work on it. |
Description:
I am on a fresh install of React Native (0.67.1). I've configured and imported a fresh install of react-native-onesignal (4.3.6).
The moment I import the react-native-onesignal package, regardless of any method from the OneSignal package, I get the following error while running on iOS:
Environment
React Native 0.67.1
react-native-onesignal 4.3.6 (installed w/ yarn)
Running into error while running on iOS emulator (haven't tried Android yet)
Steps to Reproduce Issue:
yarn add react-native-onesignal
OneSignal.setAppId
)Anything else:
Call stack points to
react-native-onesignal/dist/index.js
L50:The text was updated successfully, but these errors were encountered: