/* eslint-disable no-restricted-imports */ import { ScrollView } from 'react-native' import Animated from 'react-native-reanimated' import { isReanimated } from 'rntwsc/tw/components/lib/is-reanimated' import { normalizePropsNative } from 'rntwsc/tw/components/lib/normalize-props-native' import { renderReanimated } from 'rntwsc/tw/components/lib/render-reanimated' import type { ScrollViewPropsWocn } from 'rntwsc/tw/components/without-class-name/scroll-view' export const ScrollViewWocn = (props: ScrollViewPropsWocn) => { props = normalizePropsNative(props) const Component = isReanimated(props) ? Animated.ScrollView : ScrollView return renderReanimated(Component, props) }