From d469014615877891063fa56b094da60760cec455 Mon Sep 17 00:00:00 2001 From: Cody Bennett <23324155+CodyJasonBennett@users.noreply.github.com> Date: Mon, 4 Oct 2021 17:37:48 -0500 Subject: [PATCH] fix(native): add children prop --- targets/native/src/animated.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 = {