import type { ForwardedRef, ReactElement } from 'react'; import { forwardRef } from 'react'; import { FlashList, type FlashListProps, type FlashListRef, type ListRenderItem, type ListRenderItemInfo, type RenderTarget, type RenderTargetOptions, type ViewToken, } from '@shopify/flash-list'; export type VirtualizedListRef = FlashListRef; export type VirtualizedListProps = FlashListProps; export type { ListRenderItem, ListRenderItemInfo, RenderTarget, RenderTargetOptions, ViewToken }; function VirtualizedListInner( props: VirtualizedListProps, ref: ForwardedRef>, ) { return ; } export const VirtualizedList = forwardRef(VirtualizedListInner) as ( props: VirtualizedListProps & { ref?: ForwardedRef> }, ) => ReactElement | null; (VirtualizedList as { displayName?: string }).displayName = 'VirtualizedList';