question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS] Minute interval doesn't work with mode 'time'

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
henninghallcommented, Jan 20, 2020

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.

0reactions
henninghallcommented, Jan 23, 2020

Released in v2.7.4

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found