react-native-picker icon indicating copy to clipboard operation
react-native-picker copied to clipboard

DatePicker 回调参数可以自定义吗

Open gitSirzh opened this issue 7 years ago • 1 comments

onPickerConfirm 这个回调我想返回的参数是: ("2018年","01月","01日"),我想要的是 去掉年月日("2018","01","01")

gitSirzh avatar Sep 14 '18 05:09 gitSirzh

<DatePicker HH={false} mm={false} ss={false} unit={this.state.unit} startYear={this.state.startYear} selectedValue = {[1990 + 'năm', 1 + 'tháng', 1 + 'Ngày']} onPickerConfirm={(value) => { newValue = value[2]+value[1]+value[0]; this.setState({ birthday: newValue, }) }}

      onPickerCancel={() => {

      }}
      ref={ref => this.DatePicker = ref} />

Levofloxacin avatar Mar 06 '19 10:03 Levofloxacin