Date picker fails to compile upon building
See original GitHub issueDescribe the bug
After installing the package and running pod install
in the iOS folder,
running react-native run-ios
fails on building the library Datepicker.m
Expected behavior expected to compile
/Users/charbel/Desktop/AwesomeProject/node_modules/react-native-date-picker/ios/RNDatePicker/DatePicker.m:58:18: property 'preferredDatePickerStyle' not found on object of type 'DatePicker *'
self.preferredDatePickerStyle = UIDatePickerStyleWheels;
^
❌ /Users/charbel/Desktop/AwesomeProject/node_modules/react-native-date-picker/ios/RNDatePicker/DatePicker.m:58:45: use of undeclared identifier 'UIDatePickerStyleWheels'
self.preferredDatePickerStyle = UIDatePickerStyleWheels;
Smartphone (please complete the following information):
- OS: iOS 13.3
- React Native version 0.63.2
- react-native-date-picker version 3.0.3
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:10 (6 by maintainers)
Top Results From Across the Web
installing react datepicker fails on build of webpack
I found the answer here. I basically just needed to make sure css-loader and style-loader were installed and add in the following webpack ......
Read more >Date Picker - Components - Paste: The Design System for ...
The Date Picker is an input field which accepts a value in MM/DD/YYYY format. Currently, the Date Picker is built on top of...
Read more >Solved: Customize the date picker - Power Platform Community
Hi there,. I am building an event planning application, so the user can register a new event by submitting a form with the...
Read more >Let's Build a Design System: Date Pickers - YouTube
In this tutorial we'll go over making all the Date Picker component variants. It's a long one and some of the red lines...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ah okay then we need to find a solution for it, meanwhile you can downgrade to 3.0.2
Alright, Xcode 11.6 will probably resolve this issue, let me know if it doesn’t and we’ll reopen this issue.