Skip to content

v3.0.0

Compare
Choose a tag to compare
@computerjazz computerjazz released this 13 Nov 19:14
  • 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 via useOnCellActiveAnimation hook.
  • Remove onRef prop in favor of forwardRef
  • 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:
    rndfl-samecell