diff --git a/src/components/DraggableList/index.android.tsx b/src/components/DraggableList/index.android.tsx index 30bf7c927bd9..cc1a7b1910d4 100644 --- a/src/components/DraggableList/index.android.tsx +++ b/src/components/DraggableList/index.android.tsx @@ -1,23 +1,24 @@ import React from 'react'; import {View} from 'react-native'; -import DraggableFlatList from 'react-native-draggable-flatlist'; -import type {FlatList} from 'react-native-gesture-handler'; +import {NestableDraggableFlatList, NestableScrollContainer} from 'react-native-draggable-flatlist'; +import type {ScrollView} from 'react-native-gesture-handler'; import useThemeStyles from '@hooks/useThemeStyles'; import type {DraggableListProps} from './types'; -function DraggableList({renderClone, shouldUsePortal, ListFooterComponent, ...viewProps}: DraggableListProps, ref: React.ForwardedRef>) { +function DraggableList({renderClone, shouldUsePortal, ListFooterComponent, ...viewProps}: DraggableListProps, ref: React.ForwardedRef) { const styles = useThemeStyles(); return ( - - + {React.isValidElement(ListFooterComponent) && {ListFooterComponent}} - + ); }