import React from "react"; import { ScrollView, RefreshControl } from "react-native"; import type { ScrollViewProps } from "react-native"; import useSplitContentContainerStyles from "./useSplitContentContainerStyles"; interface Props extends Omit { onRefresh?: () => void; refreshing?: boolean; } /** * A ScrollView wrapper that takes a single `style` prop and internally extracts * the appropriate style keys into the `contentContainerStyle` */ const SimpleStyleScrollView = React.forwardRef( ( { style: styleProp, onRefresh, refreshing = false, ...rest }: Props, ref: React.Ref ) => { const { style, contentContainerStyle } = useSplitContentContainerStyles( styleProp, { isFlashList: false } ); return ( ) : undefined } {...rest} /> ); } ); export default SimpleStyleScrollView;