[iOS] Minute interval doesn't work with mode 'time'
See original GitHub issueDescribe the bug
When the mode
is set to 'time'
, the minuteInterval
prop has no effect (iOS only). Notably, it works when mode is 'datetime'
.
Expected behavior
Minute interval prop should work on iOS when mode is time
To Reproduce Add example code that reproduces the behavior.
export default class App extends Component {
state = { date: new Date() }
render = () =>
<DatePicker
mode='time'
minuteInterval={15}
date={this.state.date}
onDateChange={date => this.setState({ date })}
/>
}
Smartphone (please complete the following information):
- OS: iOS 12.1
- React Native version: 0.61.4
- react-native-date-picker version: 2.7.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
[DatePickerIOS] minuteInterval not work with mode="time ...
I found that minuteInterval works on iOS emulator, but not work at real device both minuteInterval and date range feature.
Read more >ios - UIDatePicker is set to 15 minute intervals, but the date if ...
In main.storyboard I have set the UIDatePickers' Date values to Current Date. And, I have set their interval to 15 minutes. The issue...
Read more >How to run timer in background for… | Apple Developer Forums
How to run timer in background for unlimited time while iphone screen locked or unlocked and ... This means that the timer will...
Read more >The ultimate guide to Timer - Hacking with Swift
Swift's Timer class is a flexible way to schedule work to happen in the future, either just once or repeatedly. In this guide...
Read more >How to create custom Apple Watch interval workouts
Choose the type of cooldown (open, time, etc.). If you don't want a cooldown, tap Skip. Enter a name for your interval workout...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Found a way to reproduce this, and have a fix ready. Will merge https://github.com/henninghall/react-native-date-picker/pull/155 and release a new version shortly.
Released in v2.7.4