简体   繁体   中英

minuteInterval prop on react-native-modal-datetime-picker not working

Expected behavior: passing prop minuteInterval={15} should show time in 15 minutes interval.

Actual behavior: 1 minute interval


 <DateTimePicker
    minuteInterval={15}
    is24Hour={false}
 />

As per the documentation all the props provided by react-native-datetimepicker is being provided to this package. Read here

In the documentation, if you want to use minuteInterval, in iOS the display prop must be set to spinner . Read here 在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM