question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12

github_iconTop GitHub Comments

17reactions
yesIamFadedcommented, Feb 10, 2022

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

16reactions
kusakusakusacommented, 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! 🎊

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native - Invariant Violation "RNDateTimePicker"
Invariant Violation: Invariant Violation: requireNativeComponent: "RNDateTimePicker" was not found in the UIManager. Anyone else experiences ...
Read more >
requireNativeComponent: "RNCAndroidDialogPicker" was not ...
invariant violation: requirenativecomponent: "rncandroiddialogpicker" was not found in the uimanager. Add Answer | View In TPC Matrix.
Read more >
"RNCSlider" was not found in the UIManager. - YouTube
ERROR Invariant Violation : requireNativeComponent : "RNCSlider" was not found in the UIManager.Please do like share and comment if you like ...
Read more >
react-native-community/datetimepicker - npm
Please note using this prop is discouraged due to not working reliably in all picker modes. Prefer localization as documented in Localization ...
Read more >
"RNCPicker" was not found in the UIManager-React Native
Coding example for the question Error: Invariant Violation: requireNativeComponent: "RNCPicker" was not found in the UIManager-React Native.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found