From 9e46e1c5ee947429c8734fc0bc025fa858766ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Mon, 4 Jul 2022 16:44:15 +0200 Subject: [PATCH] fix: make children on AnimatedComponent optional Follow up to https://github.com/pmndrs/react-spring/pull/1705/files#r913068712 --- targets/native/src/animated.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/native/src/animated.ts b/targets/native/src/animated.ts index 72bb3c9816..ba492c1451 100644 --- a/targets/native/src/animated.ts +++ b/targets/native/src/animated.ts @@ -21,7 +21,7 @@ export type WithAnimated = { /** The type of an `animated()` component */ export type AnimatedComponent = ForwardRefExoticComponent< - AnimatedProps> & { children: ReactNode } + AnimatedProps> & { children?: ReactNode } > /** The props of an `animated()` component */