import React from 'react';
import { FlatList } from 'react-native';
import type { ImageStyle } from '@d11/react-native-fast-image';

interface AuthContextProps {
  children: ImageStyle;
}

const TVirtualizedList: React.FC<AuthContextProps> = ({ children }): any => {
  return (
    <FlatList
      data={[]}
      showsVerticalScrollIndicator={false}
      keyExtractor={(_item, index) => '' + index}
      renderItem={null}
      bounces={false}
      ListHeaderComponent={<>{children}</>}
    />
  );
};

export default TVirtualizedList;
