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

Invariant Violation: requireNativeComponent: "DatePickerManager" was not found in the UIManager #40

Closed
kusakusakusa opened this issue Mar 19, 2019 · 12 comments

Comments

@kusakusakusa
Copy link

Hihi,

I am facing this error on android.
With reference to #15, I am not using expo and i use react-native init when I started the app.
App can install normally on Android, but fails on open the date picker.
Works normally on iOS.

Am I missing something?

@kusakusakusa
Copy link
Author

kusakusakusa commented Mar 19, 2019

I matched the andorid config files in the example directory and found that the lines in MainApplication.java were missing.

...
import com.henninghall.date_picker.DatePickerPackage;
...
protected List<ReactPackage> getPackages() {
    // Add additional packages you require here
    return Arrays.<ReactPackage>asList(
            ...
            new DatePickerPackage(),
            ...
    );
}

It worked after adding these files. I removed my android/build while debugging this, leaving it here in case it matters.

Im dont believe I removed anything after linking hmmm..

Good work with the library by the way. Many thanks! 🎊

@nerdygirl
Copy link

I just ran into the same issue and this fix worked for me. Thanks!

@Di4ik3r
Copy link

Di4ik3r commented Oct 28, 2020

I ran into the same issue, but rebuilding (react-native run-android) - solved the issue

@yesIamFaded
Copy link

This Issue Still exists.... Using expo so I cant do the fix

@kritarth2121
Copy link

Please give the fix

@gaweki
Copy link

gaweki commented Jul 27, 2022

this still happen when development in my redmi note 9 pro. in android simulator pixel 4 xl works well

@sckwokyboom
Copy link

sckwokyboom commented Aug 16, 2022

+, similar problem

@minshaf998
Copy link

similar problem

@luluanacarla
Copy link

I'm having the same problem

@mgarcial1995
Copy link

I'm having the same problem whit Expo.

@amiellion
Copy link

on expo and have same problems

@thezeenagari
Copy link

on expo and have same problems

This library can't be used in the "Expo Go" app because it requires custom native code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests