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