Native component for RNDatePicker does not exist
Hi, after installation steps, I get that error

i didn't use expo
Hi! Are you using Cocoapods?
Yes
Try running "pod install" from your ios directory if you havn't done it already, did it help?
No it's the problem how i can link it manually ?
I have managed to reproduce this, its definitely an issue when using CocoaPods. I will try to fix it, in the meantime you can manually link the project like this: Manual Linking
For everyone not using CocoaPods you can use react-native link as usual.
Testing on an android device-
Kindly provide solution asap.
Same problem on ios with manual linking.
The DateManagerPicker could not be found
I only manage to reproduce same error as @issamabdelkrim when the Podfile is setup incorrectly. For instance if react-native-date-picker is excluded. This could happen if you forget to use react-native link or pod install. With a Podfile like this followed by a pod install it works perfectly fine for me. I added an example project using cocaopods with a step-by-step explanation of how I created it.
@harshita-dhingra's error seems to be somthing completely different which I unfortunately don't manage to reproduce at all. Please provide an explaination of how to reproduce it if your problem persists.
Also please provide your react-native version if the above doesn't help.
Okay thanks.
On Thu, Nov 29, 2018 at 2:28 AM Henning Hall [email protected] wrote:
I only manage to reproduce same error as @issamabdelkrim https://github.com/issamabdelkrim when the Podfile is setup incorrectly. For instance if react-native-date-picker is excluded. This could happen if you forget to use react-native link or pod install. With a Podfile like this https://github.com/henninghall/react-native-date-picker/blob/master/example-cocoapods/ios/Podfile followed by a pod install it works perfectly fine for me. I added an example project https://github.com/henninghall/react-native-date-picker/tree/master/example-cocoapodsusing cocaopods with a step-by-step explanation https://github.com/henninghall/react-native-date-picker/tree/master/example-cocoapods of how I created it.
@harshita-dhingra https://github.com/harshita-dhingra's error seems to be somthing completely different which I unfortunately don't manage to reproduce at all. Please provide an explaination of how to reproduce it if your problem persists.
Also please provide your react-native version if the above doesn't help.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/henninghall/react-native-date-picker/issues/30#issuecomment-442602146, or mute the thread https://github.com/notifications/unsubscribe-auth/AkRDASpSwm4eStzhiCzcQW3dZ6rnpzc1ks5uzvjxgaJpZM4Ys9sa .
-- Harshita Dhingra UI/UX Intern.
I am having the same problem as @harshita-dhingra in android.
"DatePickerManager" does not exist
Can you help me on this one?
@RaiSaugat I will give it a try! What version of react-native and react-native-date-picker are you using?
"react-native": "0.51.0", "react-native-date-picker": "^2.2.1"
You can try upgrading react-native version if you have the possibility since it's 1 year old. https://facebook.github.io/react-native/docs/upgrading At some point I will investigate a bit around which versions that the package support.
The same version works on my colleague workspace. But not in mine.
I am having same problem, what should I do? "react-native": "^0.52.2", "react-native-date-picker": "^2.2.1"
@feetbo90 Is it the android or ios issue?
I am pretty sure the original ios issue is related to the Podfile. See my comment of how to solve it.
The Android issue mentioned in this thread is unrelated to the ios one why I consider it is best to open a separate issue for that one. If anyone still having that issue, please open an issue with a description of how to reproduce it. I am unable to reproduce myself. Also please mention your React Native and react-native-date-picker version. Appriciate your help.
I Have the same problem without Cocoapods. My version : react-native: 0.55.2, react-native-date-picker: 2.2.1
Sometimes react native link doesn't work correctly, it would be good a manual installation info.
Anyway, great job!.
@ofito Great idea, should definitely add that. Did you solve it by manual installation?
I had the same issue, In my case react-native link did not work. solved it by manual installation. Here is how I did it.
- Open project.xcworkspace
- In the "Project Navigator > Libraries" right click and "Add files to ..."
- Select RNDatePicker.xcodeproj from "node_modules/react-native-date-picker/ios"
- Go to "Targets > Project Name > Linked Framework & Libraries" and select "+"
- Select "libRNDatePicker.a" from the list (search for it) and click "add"
- Re run react native project.