henninghall/react-native-date-picker

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

kusakusakusa opened this issue ยท 12 comments

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?

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! ๐ŸŽŠ

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

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

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

Please give the fix

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

+, similar problem

similar problem

I'm having the same problem

I'm having the same problem whit Expo.

on expo and have same problems

on expo and have same problems

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