Allow normal React.ReactChild as child component
This commit is contained in:
Igor Timoshenkov 2021-09-08 17:04:25 +03:00 committed by GitHub
parent f6a56fa0d5
commit ad81527388
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
index.d.ts vendored
View File

@ -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