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.

Buttons on date picker using display="spinner" on Samsung devices are white text on white background and not visible

See original GitHub issue

Bug report

Summary

When using display=“spinner” on Samsung devices the the Cancel and OK buttons are both white and invisible on the white background of the picker.

Reproducible sample code

https://snack.expo.dev/@formaldeyhdeson/moody-juice-box

Steps to reproduce

  1. Add DateTimePicker component
  2. Open component and observe buttons are not visible

Describe what you expected to happen:

  1. Buttons should be visible

Environment info

Expo version 40.0 but in my snack I used 42.0 and the issue is still present. Snack also has the latest version of this component

npx react-native info output:

info Fetching system and libraries information...
System:
    OS: Windows 10 10.0.19042
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 5.34 GB / 15.86 GB
  Binaries:
    Node: 12.18.2 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 7.13.0 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  SDKs:
    Android SDK: Not Found
    Windows SDK:
      AllowAllTrustedApps: Disabled
      Versions: 10.0.17763.0
  IDEs:
    Android Studio: Version  3.1.0.0 AI-173.4720617
    Visual Studio: Not Found
  Languages:
    Java: 13.0.2 - C:\Program Files\Java\jdk-13.0.2\bin\javac.EXE
    Python: 3.9.6 - C:\Users\alihe\AppData\Local\Programs\Python\Python39\python.EXE
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1
    react-native: https://github.com/expo/react-native/archive/sdk-40.0.0.tar.gz => 0.63.2
    react-native-windows: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

datetimepicker version: 3.5.2

iOS / Android version: Observed on Samsung S10+ and S10E on Android 11 One UI 3.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:7
  • Comments:19 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
vonovakcommented, Dec 11, 2021

hello, this is a bug present only with expo sdk; the code works just fine in the example project. Try upgrading to latest expo 44 beta.

thank you 😃

7reactions
VictorGobelcommented, Dec 7, 2021

Also having the issue, on android OnePlus with the display=“spinner” The textColor is only working for IOS (same for the style={{ color: ‘red’}} )

you can pass a textColor=“#0” as props. this fixes the issue.

<DateTimePicker display={dateDisplay} value={new Date(date)} mode="date" onChange={onChange} textColor='red' style={{ color: 'red'}} />

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android: DatePicker spinner text color white on some devices
I tried to change a lot of different attributes but nothing worked. Here is the underlying code: final AlertDialog.Builder datePickerDialog = ...
Read more >
DatePicker OK/Cancel buttons not visible on Android
I added DatePicker in my app. However, when I tested it, I found that on Android the calendar's OK/Cancel buttons were colored white...
Read more >
Date Picker Spin Button Example | APG | WAI - W3C
This enables screen reader users to easily perceive the date represented by the three buttons without having to navigate to all three buttons...
Read more >
[Internal] DRAFT VeriShow Web: Release notes - Eazyshow
Show total statistic first on activity dashboard. 5. Implement in ... Fix text in white label is broken after import in case of...
Read more >
:placeholder-shown - CSS: Cascading Style Sheets | MDN
... any or element that is currently displaying placeholder text. ... input.studentid:placeholder-shown { background-color: yellow; ...
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