简体   繁体   English

react-native-modal-datetime-picker 上的 minuteInterval 道具不起作用

[英]minuteInterval prop on react-native-modal-datetime-picker not working

Expected behavior: passing prop minuteInterval={15} should show time in 15 minutes interval.预期行为:传递 minuteInterval={15} 应该以 15 分钟为间隔显示时间。

Actual behavior: 1 minute interval实际行为:间隔 1 分钟


 <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根据文档, react-native-datetimepicker提供的所有道具都提供给这个 package。 阅读这里

In the documentation, if you want to use minuteInterval, in iOS the display prop must be set to spinner .在文档中,如果要使用 minuteInterval,则必须在 iOS 中将 display 属性设置为spinner Read here 在这里阅读在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 更改 react-native-modal-datetime-picker 上的分钟增量 - Change minute increment on react-native-modal-datetime-picker 日期范围在react-native-modal-datetime-picker? - Date ranges on react-native-modal-datetime-picker? “react-native-modal-datetime-picker”年列表不滚动 - "react-native-modal-datetime-picker" years list is not scrolling 来自“react-native-modal-datetime-picker”的 React Native DateTimePickerModal 不允许我在一个组件中添加 2 个 DateTime 选择器 - React Native DateTimePickerModal from "react-native-modal-datetime-picker" Not letting me add 2 DateTime picker in one component 在终端中使用“npm install react-native-modal-datetime-picker”时出错 - getting an error when using `npm install react-native-modal-datetime-picker` in terminal 夏令时区的 react-native-modal-datetime-picker 问题 - react-native-modal-datetime-picker issue with daylight saving time zone 反应本机模态日期时间选择器不起作用 - React native modal datetime picker not working React 本机模态日期时间选择器在打开时不显示 - React native modal datetime picker not showing up when opened REACT Native Modal 透明道具在 Android 上出现问题 - REACT Native Modal transparent prop is bugging on Android 如何将 react-native-datetime-modal-picker 与输入一起使用? - how can I use the react-native-datetime-modal-picker with input?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM