Releases: computerjazz/react-native-draggable-flatlist
Releases · computerjazz/react-native-draggable-flatlist
v4.0.1
v4.0.0
v3.1.2
- Forward ref in
NestableDraggableFlatList
v3.1.1
- Fix circular import
v3.1.0
v3.0.6
v3.0.4
v3.0.3
v3.0.2
- fix ref type
v3.0.0
- Move logic from a single huge class component into several smaller, more maintainable components and hooks
- Add "cell decorators" to provide an easy way to add common hover animations -- for example, wrapping
renderItem
in a<ScaleDecorator>
component will automatically scale the active item (see above gif). Added scale, shadow, and opacity decorators, and developers may create their own custom decorators viauseOnCellActiveAnimation
hook. - Remove
onRef
prop in favor offorwardRef
- Remove
layoutInvalidationKey
: we no longer need to force re-measurement, each cell now automatically re-measures on layout - Translate actual component instead of copy. Allows us to maintain state during drag. The following behavior would not have been possible before, since the swiped state would have been lost in the copy: