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 beta] DatePickerIOS is invisible having dark mode enabled

See original GitHub issue

React Native version: 0.60.5

This may be relevant to #25181 discussing Xcode 11 and iOS 13 Beta.

Steps To Reproduce

  1. Run react-native init ExampleDatePicker to create a new project.
  2. Add <DatePickerIOS date={new Date()} /> to the bottom of the scroll view in App.js.
  3. Run app on iOS 13 (simulator or test device) having dark mode enabled.
  4. The date picker is interactive (you hear the ticking noise when dragging the wheels) but it appears transparent – you can’t see it.

Describe what you expected to happen: I expected to see the date picker.

This is what it looks like on iOS 13 with dark mode disabled:

Screenshot

…on iOS 13 with dark mode enabled:

Screenshot

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:38
  • Comments:50 (3 by maintainers)

github_iconTop GitHub Comments

259reactions
leelandclaycommented, Oct 10, 2019

I tried both the self.window and rootView overrides and neither worked for me. I finally discovered a workaround that works in 13.1.2. Add this to your plist file:

<key>UIUserInterfaceStyle</key>
<string>Light</string>
69reactions
jittuucommented, Sep 28, 2019

I managed to make it work by setting to selft.window instead of rootView.

I added the following code in AppDelegate.m

if (@available(iOS 13, *)) {
    self.window.overrideUserInterfaceStyle = UIUserInterfaceStyleLight;
}

return YES;
Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it possible to opt-out of dark mode on iOS 13? - Stack Overflow
So, there's no need to opt out of dark mode. If you are using Xcode 11 or later, the system has automatically enabled...
Read more >
Uipicker Dark Color Ios13 : - ADocLib
We have the best Ios 12 Simulator Dark Mode Album. iOS 13 beta] DatePickerIOS is invisible having dark mode Latest iOS 12 Beta...
Read more >
App Not Following iOS 13's Dark Mode? Check These Settings
Step 2Check That You Have iOS Dark Mode Enabled. Are you sure Dark Mode is even on? To check, open Control Center, expand...
Read more >
ReactNativeでiOS13のDarkModeを無効化する。 - recolog
react-native/iOS 13 beta DatePickerIOS is invisible having dark mode enabled #26299. <key>UIUserInterfaceStyle</key> <string>Light</string>.
Read more >
Check Out Dark Mode in iOS 13 - MacRumors
Speaking of wallpaper, iOS 13 has several new wallpapers available, which turn colors from light to dark based on which mode you have...
Read more >

github_iconTop Related Medium Post

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