File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
- import { ForwardRefExoticComponent } from 'react'
1
+ import { ForwardRefExoticComponent , ReactNode } from 'react'
2
2
import { ViewStyle , RecursiveArray } from 'react-native'
3
3
import {
4
4
AssignableKeys ,
@@ -19,9 +19,10 @@ export type WithAnimated = {
19
19
} & AnimatedPrimitives
20
20
21
21
/** The type of an `animated()` component */
22
- export type AnimatedComponent <
23
- T extends ElementType
24
- > = ForwardRefExoticComponent < AnimatedProps < ComponentPropsWithRef < T > > >
22
+ export type AnimatedComponent < T extends ElementType > =
23
+ ForwardRefExoticComponent <
24
+ AnimatedProps < ComponentPropsWithRef < T > > & { children : ReactNode }
25
+ >
25
26
26
27
/** The props of an `animated()` component */
27
28
export type AnimatedProps < Props extends object > = {
You can’t perform that action at this time.
0 commit comments