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.

Don't work textColor props.

See original GitHub issue

Bug

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:closed
  • Created 3 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

10reactions
anasalaqeelcommented, Jan 4, 2021

I faced same problem and I added display="spinner" and then I added this prop textColor="#000" to change text color and here the problem happens, so I uninstalled the datetimepicker module using npm uninstall @react-native-community/datetimepicker --save and I install it again then and nothing fixed, so I make a final try by addeding style={{top: 0}} and then the textColor prop work fine.

I hope this help someone

10reactions
Vachan0commented, May 11, 2020

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 } }} >/

Read more comments on GitHub >

github_iconTop 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 >

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