[iOS] Datepicker buttons not visible
See original GitHub issueIssue
On iOS 11.4, the confirm & cancel buttons are not visible:
Expected Behavior
The buttons should be visible:
Code
<DatePicker
style={styles.datePicker}
date={this.state.shiftStart.format(DATEPICKER_FORMAT)}
maxDate={this.state.shiftEnd.format(DATEPICKER_FORMAT)}
format={DATEPICKER_FORMAT}
mode='datetime'
placeholder='Shift start'
onDateChange={(date) => this.onShiftStartChange(date)}
confirmBtnText='Select'
cancelBtnText='Cancel'
customStyles={{ btnTextConfirm: { color: 'blue' } }}
/>
Environment
react-native -v
:react-native-cli: 2.0.1; react-native: 0.56.0
node -v
:v9.2.0
npm -v
:5.5.1
yarn --version
:1.9.4
target platform
: iOSoperating system
: OSX
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:5 (1 by maintainers)
Top Results From Across the Web
UIDatePicker not showing when I click the button
Solved : #import "ViewController.h" @interface ViewController () @property (strong, nonatomic) IBOutlet UIDatePicker *datepicker; ...
Read more >Picker control not showing "Done" in iOS - MSDN - Microsoft
But its not showing "Done" button in iOS . For Android, its working as expected with "Ok" and "Cancel" buttons.
Read more >react-native-community/datetimepicker - npm
React Native date & time picker component for iOS, Android and ... Show a default date picker (spinner/calendar/clock) based on mode .
Read more >iOS : Date/Time Picker Flutter : OK/CANCEL button not visible
iOS : Date/Time Picker Flutter : OK/CANCEL button not visible [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] iOS ...
Read more >Date Box - OK button and bar not visible (covered) on iOS 14
We have implemented jQuery Date Box. On iPhone (iOS 14.x) when time is pressed for editing and numeric keyboard slides up from bottom...
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 FreeTop 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
Top GitHub Comments
@seanmorton Fixed by adding these properties to custom styles
btnConfirm: { paddingVertical: 0, }, btnCancel: { paddingVertical: 0, },
Thank you so much you save my day @Besiara