import React from 'react';
import { FlashList, FlashListProps } from '@shopify/flash-list';
import { FlatListProps } from 'react-native';

type CombinedListProps<ItemT> = FlatListProps<ItemT> &
  Partial<FlashListProps<ItemT>>;

const FoundationList = <ItemT,>(props: CombinedListProps<ItemT>) => {
  return <FlashList {...props} />;
};

export { FoundationList };
