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 13 current date not there/visible - urgent help please

See original GitHub issue

Describe the bug NOW I saw it is only when ios13 dark mode is set!

Current date is not visible - or it is white not sure on IOS 13 the same code was working fine on IOS 12. On image you can see it’s only current date I moved year down and even not in focus it’s still white/not there. unnamed

Expected behavior That current date is visible.

To Reproduce

<DatePicker
                maximumDate={this.props.maximumDate}
                textColor={this.props.pickerColor}
                style={{width: this.props.screenWidth}}
                date={this.state.date}
                mode={this.props.mode}
                locale={this.state.locale}
                onDateChange={this.dateChanged}
              />

Smartphone (please complete the following information):

  • OS: IOS 13, android work fine
  • React Native version [e.g. 0.59.10]
  • react-native-date-picker version 2.7.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:20 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
ryanbourneukcommented, Dec 11, 2019

I’ve also got this to work, by changing:

- (UIView *)view
{
    return [DatePicker new];
}

in RNDatePickerManager.m to:

- (UIView *)view
{
    DatePicker *datePicker = [DatePicker new];
    
    if(@available(iOS 13, *)) {
        datePicker.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
    }

    return datePicker;
}

For a quick fix (accepting that you’ll disable dark mode for the component) that’ll work - I’ll revisit this when I have more time to see if there’s a fix that also allows for dark mode support!

2reactions
henninghallcommented, Feb 2, 2020

@henninghall Screenshot 2020-01-20 at 10 55 28 AM

Released a fix for this in 2.7.3

Not available this version.

This is “react-native-date-picker” library, not “react-native-datepicker”, I understand that the names can be confusing 😅

Read more comments on GitHub >

github_iconTop Results From Across the Web

If you can't change the time or time zone on your Apple device
On your iPhone or iPad · Go to Settings > General > Date & Time. · Turn off Set Automatically. Is this setting...
Read more >
How to get iOS 13 today without waiting - YouTube
The iOS 13 release date hasn't come about yet, we'll tell you how to download and install it on your iPhone starting today,...
Read more >
iPad Compatibility with iOS Versions - Revel Support
iPad Model Date Released Initial iOS Release Max Release iPad (gen 9) 2021 15 15 iPad mini (gen 6) 2021 15 15 iPad Pro 12.9" (gen...
Read more >
Visible Evidence Something Is No Longer There
Visible Evidence Something Is No Longer There Visible Evidence ... for Business Insider back in 2015 the evidence dates all the way back...
Read more >
How do I get the current Date in short format in Swift
It may be a debugger issue -- the Xcode debugger`s variable display stuff is pretty flaky, and not to be trusted. – Hot...
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