SDK Version: 43.0.3
datetimepicker version: 3.5.2 (5.0.1 have same problem)
Platforms(Android): API28、29、30
I’m using the react native community Date Time Picker in my managed workflow Expo app(Expo SDK Version 43.0.3)
I recently found out that on older Android phones, the text color of the module would render as white, thus not visible on white background.
This only happens when using display “spinner” and not the “calendar” (default) one. In spinner display, I have a green text color on recent Android and white on old ones. In calendar, I have a nice blue color.
I saw a lot of issues on their github to fix this, and all solutions include managing the style file in the android folder.
Another solution I tried was adding a “primaryColor” field in Expo config file, but this changed nothing.
Does someone know how to fix this issue, changing color or preventing it to render as white in a managed expo app?
Reproducible sample code
sample code for snack.expo
Were you ever able to find a solution here? I saw a GitHub comment saying to upgrade to Expo 44 but no word on weather that resolved the issue:
opened 06:43AM - 27 Oct 21 UTC
closed 11:07PM - 11 Dec 21 UTC
# Bug report
<!--
👋 Hi!
🚨 Please read the following carefully before open… ing a new issue. Your issue probably will
be closed if it doesn't follow the template. 🚨
Before submitting a new issue, please:
- Test using the latest release of the library, as maybe your bug has been already fixed. If you use expo, use `expo install` to install the latest version provided by expo
- Check for possible duplicate issues, with possible answers.
Still no progress? Fill the template. 👇
-->
## 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.
<!--
Provide a clear and concise description of what the bug is.
If you're asking for help, please make it easy for us to help you!
-->
## Reproducible sample code
https://snack.expo.dev/@formaldeyhdeson/moody-juice-box
<!--
- You must provide a **minimal and easy-to-run** reproduction of your issue - [how to create a minimal reproduction?](https://stackoverflow.com/help/mcve). We're a small team of maintainers and do not have time to try reproduce bugs ourselves.
- Please try to reproduce the bugs on the provided example app. Either provide a link to the repo that reproduces the bug or provide your code that reproduces the issue and that we can easily use.
- Provide other samples: error messages / stack traces, screenshots, gifs, as suitable.
-->
## Steps to reproduce
<!--
- Explain the steps we need to take to reproduce the issue:
-->
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
<!--
If you're using Expo, please state the version of it.
Run `npx react-native info` in your terminal and paste the results here. Also, include the *precise* version number of this library that you are using in the project.
-->
`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
system
Closed
February 15, 2022, 10:09pm
3
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.