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
|`ref`|`React.RefObject<FlatList<T>>`| FlatList ref to be forwarded to the underlying FlatList.|
38
38
|`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`). |
39
39
|`renderPlaceholder`|`(params: { item: T, index: number }) => React.ReactNode`| Component to be rendered underneath the hovering component |
40
40
|`keyExtractor`|`(item: T, index: number) => string`| Unique key for each item |
@@ -43,7 +43,6 @@ All props are spread onto underlying [FlatList](https://facebook.github.io/react
43
43
|`onDragEnd`|`(params: { data: T[], from: number, to: number }) => void`| Called after animation has completed. Returns updated ordering of `data`|
44
44
|`autoscrollThreshold`|`number`| Distance from edge of container where list begins to autoscroll when dragging. |
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
47
|`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
48
|`onScrollOffsetChange`|`(offset: number) => void`| Called with scroll offset. Stand-in for `onScroll`. |
0 commit comments