Change minute increment on react-native-modal-datetime-picker

Viewed 1600

I am using react-native-modal-datetime-picker for a time picker. I want to change the minute interval to be 15 minutes instead of 1 minute. Is this possible? Thanks!

1 Answers

Following the docs, there is a property called minuteInterval which gets a number (defaults as 1) and can change the interval of the minutes input.

Use it like this:

render() {
    return (
      <>
        <DateTimePicker
          minuteInterval={15}
        />
      </>
    );
  }
Related