Closed wuwenyuan111 closed 5 years ago
I can't change the confirmBtnText in Android.
<DatePicker style={{width: 200}} date={this.state.date} mode="date" placeholder="select date" format="YYYY-MM-DD" minDate="2016-05-01" maxDate="2016-06-01" confirmBtnText="Confirm" cancelBtnText="Cancel" customStyles={{ dateIcon: { position: 'absolute', left: 0, top: 4, marginLeft: 0 }, dateInput: { marginLeft: 36 }, // ... You can check the source to find the other keys. }} onDateChange={(date) => { this.setState({date: date}) }} /> ![image](https://user-images.githubusercontent.com/30981363/58526920-4c696880-8203-11e9-8060-8af8629fa9e8.png) ### Environment 1. `react-native -v`: 0.59.3 2. `node -v`: 10.15.1 3. `npm -v`: 6.4.1 4. `yarn --version`<!-- (if you use Yarn) -->: 1.13.0 5. `target platform`: Android 6. `operating system`: win 10 7. `react-native-datepicker`: 1.7.2
It's specified in the doc, why.
confirmBtnText: Specify the text of confirm btn in ios.
I assume you can't edit the button of the Android dialog
All right
Issue
I can't change the confirmBtnText in Android.
Code