import { ScrollView, type LayoutChangeEvent, type StyleProp, type ViewStyle } from "react-native"; interface DiffScrollProps { children: React.ReactNode; scrollViewWidth: number; onScrollViewWidthChange: (width: number) => void; style?: StyleProp; contentContainerStyle?: StyleProp; } export function DiffScroll({ children, onScrollViewWidthChange, style, contentContainerStyle, }: DiffScrollProps) { return ( onScrollViewWidthChange(e.nativeEvent.layout.width)} > {children} ); }