import React from 'react' ; import { Animated } from 'react-native' ; export function createAnimatedComponent < T extends React . ComponentClass < any , any > > ( component ) { return Animated . createAnimatedComponent ( component ) ; }