From ad81527388a0fff3076ff1dfbb75f9c2df2219ed Mon Sep 17 00:00:00 2001 From: Igor Timoshenkov Date: Wed, 8 Sep 2021 17:04:25 +0300 Subject: [PATCH] Fix TS Allow normal React.ReactChild as child component --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 563c30d..26b0ea8 100644 --- a/index.d.ts +++ b/index.d.ts @@ -116,7 +116,7 @@ declare module 'react-native-circular-progress' { * @param {number} fill current fill-value * @return {JSX.Element} the element inside the circle */ - children?: (fill: number) => JSX.Element; + children?: ((fill: number) => JSX.Element) | React.ReactChild; /** * Style of the children container