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

RNDatePicker" was not found in the UIManager. #107

Closed
wm20111003 opened this issue Aug 31, 2019 · 16 comments
Closed

RNDatePicker" was not found in the UIManager. #107

wm20111003 opened this issue Aug 31, 2019 · 16 comments

Comments

@wm20111003
Copy link

wm20111003 commented Aug 31, 2019

Describe the bug
A clear and concise description of what the bug is.

Expected behavior
A clear and concise description of what you expected to happen.

To Reproduce
Add example code that reproduces the behavior.

export default class App extends Component {

  state = { date: new Date() }

  render = () =>
    <DatePicker
      date={this.state.date}
      onDateChange={date => this.setState({ date })}
    />

}

Smartphone (please complete the following information):

  • OS: [Android or iOS]
  • React Native version [e.g. 0.60.0]
  • react-native-date-picker version [e.g. 2.5.1]
@wm20111003
Copy link
Author

wm20111003 commented Aug 31, 2019

image
react-native: 0.60.0 not work in ios Simulator

@wm20111003
Copy link
Author

I solved it!
In RN 0.60+ need cocopod install;
Podfile config it:

pod 'react-native-date-picker', :path => '../node_modules/react-native-date-picker'

cd ios && pod install

@yilakt
Copy link

yilakt commented Jan 3, 2020

pod 'react-native-date-picker', :path => '../node_modules/react-native-date-picker'

So after doing this, my build fails. Any suggestions?

@henninghall
Copy link
Owner

@yilakt what error message do you get?

@yilakt
Copy link

yilakt commented Jan 16, 2020

@henninghall It was telling me module wasn't found. I think it was an issue more to do with my config than the repo. But I ended up going with "@react-native-community/datetimepicker": "^2.1.0" / RNDateTimePicker for the time being.

@cjmarecek
Copy link

I have the same error but I'm running ubuntu 18.04, I can not just install cocoapods. or can I?

@cdesch
Copy link

cdesch commented Mar 4, 2020

I ran into the same issue. I cannot do the CocoPods install because it an Expo Project.

requireNativeComponent: "RNDatePicker" was not found in the UIManager.
- node_modules/react-native/Libraries/ReactNative/getNativeComponentAttributes.js:29:2 in getNativeComponentAttributes
- node_modules/react-native/Libraries/ReactNative/requireNativeComponent.js:26:4 in createReactNativeComponentClass$argument_1
- ... 8 more stack frames from framework internals

@henninghall
Copy link
Owner

@cjmarecek I don't think you could run an ios app on linux without some weird hacky tricks.
@cdesch Can I use expo?

@Dabrown18
Copy link

Dabrown18 commented May 26, 2020

I just got the same error message as the initial message

@subhani-ali
Copy link

+1

1 similar comment
@pratius
Copy link

pratius commented Oct 15, 2020

+1

@iaforek
Copy link

iaforek commented Apr 27, 2021

Is this issue connected to this by any chance?

Can I use expo?
Unfortunately, expo does not support this date picker at the moment. Upvote this feature request if you would like to have it included.

https://github.com/henninghall/react-native-date-picker#can-i-use-expo

@venux92
Copy link

venux92 commented Oct 20, 2023

pod 'react-native-date-picker', :path => '../node_modules/react-native-date-picker'

Thank you, got this error today on v4.3.3 and it solved the issue.

@duykhanh0409
Copy link

I'm still facing this issue but for android version, does someone have Any suggestions? Thanks so much

@fahad-islam
Copy link

@duykhanh0409 I am still facing this issue. Have you figured out any solution?

@Artz8489
Copy link

@duykhanh0409 I am still facing this issue. Have you figured out any solution?

Try to install react-native-date-picker": "^4.3.3" this particular version & then add pod 'react-native-date-picker', :path => '../node_modules/react-native-date-picker' inn Pod file .It should fix

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