Buttons on date picker using display="spinner" on Samsung devices are white text on white background and not visible
See original GitHub issueBug 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
- Add DateTimePicker component
- Open component and observe buttons are not visible
Describe what you expected to happen:
- 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:
- Created 2 years ago
- Reactions:7
- Comments:19 (1 by maintainers)
Top 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 >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
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 😃
Also having the issue, on android OnePlus with the display=“spinner” The textColor is only working for IOS (same for the style={{ color: ‘red’}} )