Releases: testshallpass/react-native-thumbnail-selector
Releases · testshallpass/react-native-thumbnail-selector
5.2.2
5.2.1
- Update example usage on README to reflect
Animated.EndResult
toggle function change.
5.2.0
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 fromPromise<unknown>
toPromise<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
- Fix entry point in
package.json
. - Reinstate
eslint
andprettier
. - Update
npmignore
to reduce footprint.
5.0.0
Changelog
The component refactored to Typescript.
Breaking changes
thumbnails
are required.thumbnails
are objects with an optionalcaption
and requiredimageSrc
attributes.thumbnailSelectorRef
replaced bytoggle
function when invoked will show or hide the selector.onThumbnailSelect
change toonSelect
.active
object change toactiveColor
string.inactive
object change toinactiveColor
string.thumbnailProps
,captionProps
andbuttonProps
change toimageProps
,textProps
andtouchableOpacityProps
.
New
flatListViewStyle
added. Default is{backgroundColor: 'grey', padding: 8}
.captionCharacterMaxLimit
added. Default is 15.captionEllipsis
added. Default is "...".
4.2.0
4.1.0
Changelog
- Update
animationConfig
default propuseNativeDriver
tofalse
. - Project updates: added tests, github workflow, eslint and prettier.
4.0.0
I refactored again to streamline customization.
Changelog
- Added
renderThumbnail
so can render custom component. - Breaking change: Renamed
onSelect
toonThumbnailSelect
. - Breaking change: Renamed
selectedIndex
toinitialIndex
. - Added
active
andinactive
objects to manage opacity and border colors. - Added
thumbnailProps
,captionProps
, andbuttonProps
to give more customization options to the underlying components. - Breaking change: Renamed
containerStyle
toanimatedViewStyle
. - 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 theThumbnailSelector
.
3.0.0
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()
andthumbnailSelectorRef.current.hide()
.
2.1.2
Update Prettier format.