Unable to change placeholderText color
See original GitHub issueHi, I am running on iOS , rn: 0.36, react-native-datepicker: 1.4.3
I’ve tried adding this into
<DatePicker
style={{width: 300}}
date={this.props.state.startTime}
mode="time"
placeholder="Select start time"
format="YYYY-MM-DD HH:mm"
showIcon={false}
is24Hour={false}
onDateChange={(timeStart) => this._setStartTime(timeStart)}
customStyles={{
placeholderText: {
color: '#ffffff'
}
}}
/>
I expected the placeholder text to be white, what am I doing wrong? thanks
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Changing an input's HTML5 placeholder color with CSS does ...
I tried to colorize my placeholder, but it still stay grey on Chrome 17.0.963.56 m. HTML <input type='text' name='test' placeholder= ...
Read more >Placeholder Text Color Override Not Working - HTML & CSS
Looking at this page, I've applied the following code which doesn't seem to be overriding the placeholder text color:
Read more >How To Change Input Placeholder Color - W3Schools
Step 2) Add CSS: In most browsers, the placeholder text is grey. To change this, style the placeholder with the non-standard ::placeholder selector....
Read more >Unable to change input placeholder color - WordPress.org
Am trying to change the color of the placeholder text in the Address input fields from white to black. Have Tried: form input[type="text"]::placeholder, ......
Read more >Placeholder text color not able to change #446 - GitHub
I am using this library for picker, but i am not able to change placeholder text color, i tried all ways placeholderTextColor =...
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
To change the placeholder color in IOS. You need to manipulate the dateText style
`
You can change the fontSize if you manipulate the
placeholderText
Style:Edit: Works fine on Android + RN 0.44