-
-
Notifications
You must be signed in to change notification settings - Fork 345
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.
#832
Comments
Are you running this in your unit test? I received the same error but only when running unit tests using Jest. |
Having the same problem.
|
@zihaolam @MarcosJBM I was having this issue too, FYI in my experience For me, updating my packages, updating pods and rebuilding for IOS fixed it:
|
For jest add on setup file |
Any solution for this issue? The date picker works fine on Android but I get this error on iOS. I'm running RN 0.67 and React Native Date Picker ^5.0.4 |
Going back go version 4.4.0 solved it for my team. |
on Expo running |
Going back to v5.0.1 avoids the issue for now |
Any progress on this issue? |
hi, I'm having the same problem too |
For me with RN 67 v4.2.2 solved the issue. |
Describe the bug
ERROR Invariant Violation:
new NativeEventEmitter()
requires a non-null argument.This error is located at:
in DatePickerIOS (created by DatePickerWrapper)
in DatePickerWrapper (created by BookSessionModal)
in RCTView
in Unknown (created by BookSessionModal)
in BookSessionModal (created by ModalScreen)
in ModalScreen
in Unknown (created by Route(modal))
in Suspense (created by Route(modal))
in Route (created by Route(modal))
in Route(modal) (created by SceneView)
in StaticContainer
in EnsureSingleNavigator (created by SceneView)
in SceneView (created by SceneView)
in RCTView (created by View)
in View (created by DebugContainer)
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer (created by DebugContainer)
in DebugContainer (created by MaybeNestedStack)
in RNSScreen (created by Animated(Anonymous))
in Animated(Anonymous) (created by InnerScreen)
in Suspender (created by Freeze)
in Suspense (created by Freeze)
in Freeze (created by DelayedFreeze)
in DelayedFreeze (created by InnerScreen)
in InnerScreen (created by Screen)
in Screen (created by MaybeNestedStack)
in Suspender (created by Freeze)
in Suspense (created by Freeze)
in Freeze (created by DelayedFreeze)
in DelayedFreeze (created by ScreenStack)
in RNSScreenStack (created by ScreenStack)
in ScreenStack (created by MaybeNestedStack)
in MaybeNestedStack (created by SceneView)
in RCTView (created by View)
in View (created by SceneView)
in RNSModalScreen (created by Animated(Anonymous))
in Animated(Anonymous) (created by InnerScreen)
in Suspender (created by Freeze)
in Suspense (created by Freeze)
in Freeze (created by DelayedFreeze)
Expected behavior
For the datepicker to render
To Reproduce
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: