尝试以表格形式显示react-native-date-picker
特定30天记录中的特定月份(从react-native-datepicker
(从到到)的数据。
我使用了return (
<View style={styles.container}>
<DatePicker
style={{ width: 120 }}
date={this.state.date} //initial date from state
mode="date" //The enum of date, datetime and time
placeholder="select date"
format="DD-MM-YYYY"
minDate="01-01-2019"
maxDate="01-01-2039"
confirmBtnText="Confirm"
cancelBtnText="Cancel"
customStyles={{
dateIcon: {
position: 'absolute',
left: 0,
top: 4,
marginLeft: 0
},
dateInput: {
marginLeft: 36
}
}}
onDateChange={(date) => { this.setState({ date: date }) }}
/>
</View>
)
组件:
/etc/sss/certs/