import { FilterStyles, RemoveStyles, ScrollableBoxProps, useResolveBoxListTokens, } from "design-system/hooks/useResolveBoxListTokens"; import React, { ForwardedRef, forwardRef, useContext } from "react"; import { ScrollViewProps as RNScrollViewProps } from "react-native"; import { BackgroundContext } from "design-system/hooks/useBackgroundColor"; import Animated, { AnimateProps } from "react-native-reanimated"; type ScrollViewProps = RemoveStyles & { contentContainerStyle?: FilterStyles; style?: FilterStyles; }; export type AnimatedScrollViewBoxProps = ScrollableBoxProps & AnimateProps; export const AnimatedScrollViewBox = forwardRef(function ScrollViewBox( { style, contentContainerStyle, ...props }: AnimatedScrollViewBoxProps, ref: ForwardedRef ) { const { contentContainerStyles, styles, ...rest } = useResolveBoxListTokens(props); const color = useContext(BackgroundContext); return ( } contentContainerStyle={[contentContainerStyles, contentContainerStyle]} style={[styles, style]} {...rest} /> ); });