Skip to content

Commit 66d7eab

Browse files
dangrousOSBotify
authored andcommitted
Merge pull request #60850 from davidgelhar/57312-revert-ios
(cherry picked from commit cc79b18) (CP triggered by AndrewGable)
1 parent d0d5385 commit 66d7eab

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

File renamed without changes.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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);

0 commit comments

Comments
 (0)