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.

Date picker fails to compile upon building

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

8reactions
henninghallcommented, Jul 29, 2020

Ah okay then we need to find a solution for it, meanwhile you can downgrade to 3.0.2

1reaction
henninghallcommented, Aug 24, 2020

Alright, Xcode 11.6 will probably resolve this issue, let me know if it doesn’t and we’ll reopen this issue.

Read more comments on GitHub >

github_iconTop 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 >
DatePicker - Mantine
Capture date or dates range from user.
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 >

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