Skip to content

Releases: troberts-28/react-native-timer-picker

Release v1.10.3

04 Aug 12:31
Compare
Choose a tag to compare
  • Fix various initial scroll position issues introduced by the repeatNumbersNTimes prop #35
  • Put in various safeguards to ensure that the padWithNItems and repeatNumbersNTimes props cannot be set to values that break the picker.
  • Change default repeatHourNumbersNTimes to 7 for better consistency with minutes/seconds pickers.
  • Attempted to safeguard against reported error: "this.props" should not be accessed during state updates #32

Release v1.10.2

30 Jul 10:28
Compare
Choose a tag to compare
  • The DurationScroll component repeats the list of numbers a given number of times to avoid auto-scrolling every time you hit the end of the list. Previously, this was hard-coded as 3 repetitions. Have now added props to configure the number of repititions for each picker: repeatHourNumbersNTimes, repeatMinuteNumbersNTimes and repeatSecondNumbersNTimes. Note that these have a performance trade-off: higher values mean the picker has to auto-scroll less to maintain the infinite scroll, but has to render a longer list of numbers. By default, the props are set to 6, 3 and 3, respectively, which balances that trade-off effectively. #33 #34
  • Improved the auto-scroll behaviour to avoid jumping to the next number whens scrolling slowly. #33
  • Modified the initial scroll index behaviour to ensure it starts on zero in the case where infinite scroll is disabled and the picker is set to one repetition. #34

Release v1.10.1

13 Jul 19:38
Compare
Choose a tag to compare
  • Fix entrypoint issue caused by removing src folder from bundle.

Release v1.10.0

13 Jul 19:37
Compare
Choose a tag to compare
  • Add props to configure whether to pad single-digit hours/minutes/seconds in the picker with a zero: padHoursWithZero, padMinutesWithZero, padSecondsWithZero #31
  • Remove src folder from npm bundle to reduce package size. Please note that there was an initial with the way this was done, please use v1.10.1 instead of this version.

Release v1.9.1

01 Jul 14:44
Compare
Choose a tag to compare

Release v1.9.0

23 Jun 15:34
Compare
Choose a tag to compare
  • Made it possible to supply a custom FlatList component to be used internally by the picker #27 @giovanniRodighiero 👏
  • Made TimerPicker scrollable when nested inside a vertical ScrollView #23
  • Added formatTime to README examples #28 @callum-gander

Patch v1.8.2

18 May 14:56
Compare
Choose a tag to compare
  • Removed default click sound asset from library to ensure compatibility with all environments (switched to a hosted asset instead).

Patch v1.8.1

18 May 14:55
Compare
Choose a tag to compare
  • Fix onConfirm not receiving picked duration #26
  • Minor styling logic fix for content background colour when background colour style not supplied

Release v1.8.0

12 May 12:27
Compare
Choose a tag to compare
  • Added support for iOS-style Haptic and Audio (click sound) feedback for the picker. Note that this has so far only been configured for Expo projects. It would be a simple piece of work for someone to configure it for bare projects.
  • Reorganised the file structure to make it simpler and easier to read.
  • Applied more advanced linting to clean up the codebase and make it easier to follow props through the code.

Release v1.7.0

06 May 17:14
Compare
Choose a tag to compare
  • Merged the initialHours, initialMinutes and initialSeconds props into a single initialValue prop with type { hours?: number, minutes?: number, seconds?: number }. This is for clarity and easy-of-use, whilst also guarding against a crash when a similar object was supplied to the old props.
  • Added missing typings for custom styles - contrubuted by @giovanniRodighiero 🙌