import React from 'react'; import { View, Animated, FlatListProps, FlatList } from 'react-native'; import { commonStyles as styles } from './styles'; import { PropsWithStretchy, StretchyComponentProps, WithStretchy, } from './withStretchy'; export type StretchyFlatListProps = React.PropsWithChildren< PropsWithStretchy>> >; const StretchyFlatList = React.forwardRef< FlatList, StretchyFlatListProps >( ( { foreground, imageHeight, onScroll, stretchy, style, ...otherProps }, ref, ) => ( {foreground} } /> ), ); export default WithStretchy>(StretchyFlatList);