Closed PrantikMon closed 2 years ago
Solution :Need to use customStyles props and then use disable tag to make necessary design changes when it is in disable mode.
Hi @PrantikMon can you share the code, i am unable to change background color while making disabled true.
Here is my code:-
<DatePicker {...props} disabled={true} customStyles={{ placeholderText: { fontSize: 15, color: 'white', top: 10 }, dateText: { fontSize: 15, color: 'black', top: 10, backgroundColor: 'white' }, dateIcon: { position: 'absolute', right: 0, top: 15, marginLeft: 0 }, dateInput: { borderWidth: 0, left: 10, position: 'absolute', } }} />
Issue
In selected date showing area, background color is not working when it is disabled.
Is there any other way to make it done?
Expected Behavior
Code
Environment
react-native -v
: 0.67.2node -v
:16.14.2npm -v
:8.17.0yarn --version
:target platform
: Android | iOSoperating system
: windows 10