Files
spacedrive/apps/mobile/src/components/layout/VirtualizedListWrapper.tsx
T
Utku 465708fa30 Mobile Strict Mode and Types (#578)
* better compiler options

* fix types

* fix more types
2023-02-24 08:11:48 +00:00

16 lines
387 B
TypeScript

import { PropsWithChildren } from 'react';
import { FlatList } from 'react-native';
export default function VirtualizedListWrapper({ children }: PropsWithChildren) {
return (
<FlatList
data={[]}
keyExtractor={() => 'key'}
showsHorizontalScrollIndicator={false}
showsVerticalScrollIndicator={false}
renderItem={null}
ListHeaderComponent={<>{children}</>}
/>
);
}