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.

[iOS] Datepicker buttons not visible

See original GitHub issue

Issue

On iOS 11.4, the confirm & cancel buttons are not visible: screen shot 2018-11-05 at 11 56 32 am

Expected Behavior

The buttons should be visible: image

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

  1. react-native -v: react-native-cli: 2.0.1; react-native: 0.56.0
  2. node -v: v9.2.0
  3. npm -v: 5.5.1
  4. yarn --version: 1.9.4
  5. target platform: iOS
  6. operating system: OSX

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:5
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
Besiaracommented, Nov 12, 2018

@seanmorton Fixed by adding these properties to custom styles

btnConfirm: { paddingVertical: 0, }, btnCancel: { paddingVertical: 0, },

0reactions
kashifsulaimancommented, Apr 8, 2019

Thank you so much you save my day @Besiara

Read more comments on GitHub >

github_iconTop 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 >

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