Open Anjumzaki opened 4 years ago
I want to change the colour of placeholder of the date picker
<DatePicker style={styles.forms} date={this.state.dob} //initial date from state mode="date" //The enum of date, datetime and time placeholder="Date of Birth" placeholderTextColor={'black'} allowFontScaling={false} placeholderTextColor={'gray'} format="DD-MM-YYYY" confirmBtnText="Confirm" cancelBtnText="Cancel" customStyles={{ dateIcon: { position: 'absolute', left: 0, top: 4, marginLeft: 0, }, dateText: { fontSize: 19, color: 'white' }, dateInput: { marginLeft: 36, borderWidth:0, placeholderTextColor:'black', alignItems:'flex-start' }, }} onDateChange={dob => { this.setState({ dob }); }} />
react-native -v
node -v
npm -v
yarn --version
target platform
operating system
Issue
I want to change the colour of placeholder of the date picker
Expected Behavior
<DatePicker style={styles.forms} date={this.state.dob} //initial date from state mode="date" //The enum of date, datetime and time placeholder="Date of Birth" placeholderTextColor={'black'} allowFontScaling={false} placeholderTextColor={'gray'} format="DD-MM-YYYY" confirmBtnText="Confirm" cancelBtnText="Cancel" customStyles={{ dateIcon: { position: 'absolute', left: 0, top: 4, marginLeft: 0, }, dateText: { fontSize: 19, color: 'white' }, dateInput: { marginLeft: 36, borderWidth:0, placeholderTextColor:'black', alignItems:'flex-start' }, }} onDateChange={dob => { this.setState({ dob }); }} />
Code
Environment
react-native -v
:node -v
:npm -v
:yarn --version
:target platform
: Android | iOSoperating system
: