Skip to content

Releases: testshallpass/react-native-thumbnail-selector

5.2.2

29 Nov 15:39
Compare
Choose a tag to compare
  • Update .npmignore to exclude .yarnrc.yml.

5.2.1

29 Nov 15:38
Compare
Choose a tag to compare
  • Update example usage on README to reflect Animated.EndResult toggle function change.

5.2.0

29 Nov 15:35
Compare
Choose a tag to compare

Changelog

Migrate to yarn v2 and upgrade to react-native 0.76

  • Convert arrow based function variables to functions and define the return types.
  • Change toggle return type from Promise<unknown> to Promise<Animated.EndResult>.
  • Add animatedViewTestID prop.
  • Update test cases to increase coverage to 100 %.
  • Update test cases to wrap state changes in act function.
  • Update Github workflow for yarn v2 and node 20.
  • Refactor example look & feel and update demo gif.

5.0.1

26 Mar 16:45
Compare
Choose a tag to compare
  • Fix entry point in package.json.
  • Reinstate eslint and prettier.
  • Update npmignore to reduce footprint.

5.0.0

18 Mar 03:26
Compare
Choose a tag to compare

Changelog

The component refactored to Typescript.

Breaking changes

  • thumbnails are required.
  • thumbnails are objects with an optional caption and required imageSrc attributes.
  • thumbnailSelectorRef replaced by toggle function when invoked will show or hide the selector.
  • onThumbnailSelect change to onSelect.
  • active object change to activeColor string.
  • inactiveobject change to inactiveColorstring.
  • thumbnailProps, captionProps and buttonProps change to imageProps, textProps and touchableOpacityProps.

New

  • flatListViewStyle added. Default is {backgroundColor: 'grey', padding: 8}.
  • captionCharacterMaxLimit added. Default is 15.
  • captionEllipsis added. Default is "...".

4.2.0

15 Dec 21:26
Compare
Choose a tag to compare

Changelog

  • Refactored reference to thumbnail selector. Use prop thumbnailSelectorRef.
  • Reminder: see README for usage and props info here.

4.1.0

29 Dec 23:15
Compare
Choose a tag to compare

Changelog

  • Update animationConfig default prop useNativeDriver to false.
  • Project updates: added tests, github workflow, eslint and prettier.

4.0.0

22 Dec 23:06
Compare
Choose a tag to compare

I refactored again to streamline customization.

Changelog

  • Added renderThumbnail so can render custom component.
  • Breaking change: Renamed onSelect to onThumbnailSelect.
  • Breaking change: Renamed selectedIndex to initialIndex.
  • Added active and inactive objects to manage opacity and border colors.
  • Added thumbnailProps, captionProps, and buttonProps to give more customization options to the underlying components.
  • Breaking change: Renamed containerStyle to animatedViewStyle.
  • Added animationConfig to control the open and close animation.
  • Breaking change: thumbnailSelectorRef.current.animate() is now the function to call for when you want to open and close the ThumbnailSelector.

3.0.0

16 Dec 21:39
3191c4c
Compare
Choose a tag to compare

The component was rewritten as a functional component. It now depends on React hooks introduced in React v16.8.0 and useWindowDimensions introduced in react-native v0.61.0.

BREAKING CHANGES

  • To show and hide, for example: thumbnailSelectorRef.current.show() and thumbnailSelectorRef.current.hide().

2.1.2

11 Jan 20:34
Compare
Choose a tag to compare

Update Prettier format.