import { ElementType } from 'react' ; import { animated } from '@react-spring/native' ; export function createSpringAnimatedComponent < T extends ElementType < any > > ( component ) { return animated ( component ) as unknown as any ; }