Don't work textColor props.
See original GitHub issueBug
Don’t work textColor
props.
Environment info
Expo + datetimepicker (tested on ios)
Library version: 2.3.0
Reproducible sample code
Please take a look a snack - https://snack.expo.io/@nozhenkod/rndatetimepicker-text-color
@sbycrosz, @vonovak Guys, I’ve seen you created textColor feature recently. Please, take a look.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
Text color not working in Material-UI Theme - Stack Overflow
When creating a theme for colors with Material-UI, I set contrast text to white (#fff). It is working for the button with primary...
Read more ><input type="color"> - HTML: HyperText Markup Language
<input> elements of type color provide a user interface element that lets a user specify a color, either by using a visual color...
Read more >API Reference - styled-components
Functions will receive the styled component's props as the first and only argument. ... color: ${props => props.theme.colors.text};.
Read more >Color Mode - Chakra UI
Color Mode. Chakra UI comes with built-in support for managing color mode in your apps. By default, most of Chakra's components are dark...
Read more >Color Modes - Theme UI
Theme UI uses CSS custom properties under the hood to help prevent the flash of color on load. If you're targeting browsers that...
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
I faced same problem and I added
display="spinner"
and then I added this proptextColor="#000"
to change text color and here the problem happens, so I uninstalled the datetimepicker module usingnpm uninstall @react-native-community/datetimepicker --save
and I install it again then and nothing fixed, so I make a final try by addedingstyle={{top: 0}}
and then thetextColor
prop work fine.I hope this help someone
Temporary “fix” for those of you who can’t wait untill expo 38(if you have the same issues as me, where the background is white and on some devices the font is white):
<DateTimePicker style={shadowColor: '#000000', shadowRadius: 0, shadowOpacity: 1, shadowOffset: { height: 0, width: 0 } }} >/