You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`renderItem`|`(params: { item: T, index: number, drag: () => void, isActive: boolean}) => JSX.Element`| Call `drag` when the row should become active (i.e. in an `onLongPress` or `onPressIn`). |
@@ -45,7 +45,7 @@ All props are spread onto underlying [FlatList](https://facebook.github.io/react
45
45
|`autoscrollSpeed`|`number`| Determines how fast the list autoscrolls. |
|`animationConfig`|`Partial<Animated.SpringConfig>`| Configure list animations. See [reanimated spring config](https://github.com/software-mansion/react-native-reanimated/blob/master/react-native-reanimated.d.ts#L112-L120)|
48
-
|`activationDistance`|`number`| Distance a finger must travel before the gesture handler activates. Useful when using a draggable list within a TabNavigator so that the list does not capture navigator gestures. ||
48
+
|`activationDistance`|`number`| Distance a finger must travel before the gesture handler activates. Useful when using a draggable list within a TabNavigator so that the list does not capture navigator gestures. |
49
49
|`onScrollOffsetChange`|`(offset: number) => void`| Called with scroll offset. Stand-in for `onScroll`. |
50
50
|`onPlaceholderIndexChange`|`(index: number) => void`| Called when the index of the placeholder changes |
51
51
|`dragItemOverflow`|`boolean`| If true, dragged item follows finger beyond list boundary. |
@@ -54,6 +54,8 @@ All props are spread onto underlying [FlatList](https://facebook.github.io/react
54
54
|`containerStyle`|`StyleProp<ViewStyle>`| Style of the main component. |
55
55
|`simultaneousHandlers`|`React.Ref<any>` or `React.Ref<any>[]`| References to other gesture handlers, mainly useful when using this component within a `ScrollView`. See [Cross handler interactions](https://docs.swmansion.com/react-native-gesture-handler/docs/interactions/). |
56
56
57
+
58
+
57
59
## Cell Decorators
58
60
59
61
Cell Decorators are an easy way to add common hover animations. For example, wrapping `renderItem` in the `<ScaleDecorator>` component will automatically scale up the active item while hovering (see example below).
0 commit comments