diff --git a/targets/native/src/animated.ts b/targets/native/src/animated.ts index af01b814ef..72bb3c9816 100644 --- a/targets/native/src/animated.ts +++ b/targets/native/src/animated.ts @@ -1,4 +1,4 @@ -import { ForwardRefExoticComponent } from 'react' +import { ForwardRefExoticComponent, ReactNode } from 'react' import { ViewStyle, RecursiveArray } from 'react-native' import { AssignableKeys, @@ -19,9 +19,10 @@ export type WithAnimated = { } & AnimatedPrimitives /** The type of an `animated()` component */ -export type AnimatedComponent< - T extends ElementType -> = ForwardRefExoticComponent>> +export type AnimatedComponent = + ForwardRefExoticComponent< + AnimatedProps> & { children: ReactNode } + > /** The props of an `animated()` component */ export type AnimatedProps = {