react-native-date-picker icon indicating copy to clipboard operation
react-native-date-picker copied to clipboard

Native component for RNDatePicker does not exist

Open issamabdelkrim opened this issue 8 years ago • 21 comments

Hi, after installation steps, I get that error capture d ecran 2018-11-21 a 12 48 24 pm

i didn't use expo

issamabdelkrim avatar Nov 21 '18 11:11 issamabdelkrim

Hi! Are you using Cocoapods?

henninghall avatar Nov 21 '18 12:11 henninghall

Yes

issamabdelkrim avatar Nov 21 '18 12:11 issamabdelkrim

Try running "pod install" from your ios directory if you havn't done it already, did it help?

henninghall avatar Nov 21 '18 13:11 henninghall

No it's the problem how i can link it manually ?

issamabdelkrim avatar Nov 21 '18 14:11 issamabdelkrim

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.

henninghall avatar Nov 22 '18 10:11 henninghall

Testing on an android device- screenshot_20181123-193207 Kindly provide solution asap.

ghost avatar Nov 23 '18 18:11 ghost

Same problem on ios with manual linking.

The DateManagerPicker could not be found

JoschaP avatar Nov 25 '18 20:11 JoschaP

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.

henninghall avatar Nov 28 '18 20:11 henninghall

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.

ghost avatar Nov 29 '18 05:11 ghost

I am having the same problem as @harshita-dhingra in android.

"DatePickerManager" does not exist

Can you help me on this one?

RaiSaugat avatar Nov 30 '18 08:11 RaiSaugat

@RaiSaugat I will give it a try! What version of react-native and react-native-date-picker are you using?

henninghall avatar Nov 30 '18 09:11 henninghall

"react-native": "0.51.0", "react-native-date-picker": "^2.2.1"

RaiSaugat avatar Nov 30 '18 09:11 RaiSaugat

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.

henninghall avatar Nov 30 '18 09:11 henninghall

The same version works on my colleague workspace. But not in mine.

RaiSaugat avatar Nov 30 '18 10:11 RaiSaugat

I am having same problem, what should I do? "react-native": "^0.52.2", "react-native-date-picker": "^2.2.1"

feetbo90 avatar Dec 06 '18 09:12 feetbo90

@feetbo90 Is it the android or ios issue?

henninghall avatar Dec 06 '18 09:12 henninghall

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.

henninghall avatar Dec 08 '18 13:12 henninghall

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 avatar Dec 19 '18 12:12 ofito

@ofito Great idea, should definitely add that. Did you solve it by manual installation?

henninghall avatar Dec 25 '18 13:12 henninghall

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.

  1. Open project.xcworkspace
  2. In the "Project Navigator > Libraries" right click and "Add files to ..."
  3. Select RNDatePicker.xcodeproj from "node_modules/react-native-date-picker/ios"
  4. Go to "Targets > Project Name > Linked Framework & Libraries" and select "+"
  5. Select "libRNDatePicker.a" from the list (search for it) and click "add"
  6. Re run react native project.

azhararmar avatar Mar 24 '19 08:03 azhararmar