react-native-vega-scroll-list icon indicating copy to clipboard operation
react-native-vega-scroll-list copied to clipboard

Feature/fade on top scale num columns

Open UnattendedFlight opened this issue 1 year ago • 1 comments

Added flatlist numColumns functionality to VegaScrollList + config parameters

UnattendedFlight avatar Sep 23 '22 14:09 UnattendedFlight

Reason for pull request:

I noticed that when more columns was added using numColumns, the actual columns were never taken into account for the animations. Only the first item would animate, then scrolling further down. Things got messy.

As such, I propose these minimal changes to allow for animating flatlists with more than one column.

Also additionally, there was a lack of configuration capabilities, so alongside numColumns feature, I've also added 2 more parameters.

fadeOutTop (boolean)  - decides whether the topmost items should fade out when scrolling further
scaleOutMin (number) - the scale number to animate to when the scale animation is applied.

UnattendedFlight avatar Sep 23 '22 14:09 UnattendedFlight