File tree Expand file tree Collapse file tree
src/components/DraggableList Expand file tree Collapse file tree File renamed without changes.
Original file line number Diff line number Diff line change 1+ import React from 'react' ;
2+ import DraggableFlatList from 'react-native-draggable-flatlist' ;
3+ import type { FlatList } from 'react-native-gesture-handler' ;
4+ import useThemeStyles from '@hooks/useThemeStyles' ;
5+ import type DraggableListProps from './types' ;
6+
7+ function DraggableList < T > ( { ...viewProps } : DraggableListProps < T > , ref : React . ForwardedRef < FlatList < T > > ) {
8+ const styles = useThemeStyles ( ) ;
9+ return (
10+ < DraggableFlatList
11+ ref = { ref }
12+ containerStyle = { styles . flex1 }
13+ contentContainerStyle = { styles . flexGrow1 }
14+ ListFooterComponentStyle = { styles . flex1 }
15+ // eslint-disable-next-line react/jsx-props-no-spreading
16+ { ...viewProps }
17+ />
18+ ) ;
19+ }
20+
21+ DraggableList . displayName = 'DraggableList' ;
22+
23+ export default React . forwardRef ( DraggableList ) ;
You can’t perform that action at this time.
0 commit comments