/* eslint-disable no-restricted-imports */ import { FlatList } 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 { FlatListPropsWocn } from 'rntwsc/tw/components/without-class-name/flat-list' export const FlatListWocn = (props: FlatListPropsWocn) => { props = normalizePropsNative(props) const Component = isReanimated(props) ? Animated.FlatList : FlatList return renderReanimated(Component, props) }