mirror of
https://github.com/bartgryszko/react-native-circular-progress.git
synced 2026-01-18 16:13:10 +00:00
Fix TS
Allow normal React.ReactChild as child component
This commit is contained in:
parent
f6a56fa0d5
commit
ad81527388
2
index.d.ts
vendored
2
index.d.ts
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user