mirror of
https://github.com/bartgryszko/react-native-circular-progress.git
synced 2026-01-18 16:13:10 +00:00
used func for children
This commit is contained in:
parent
a2aabc8cb0
commit
f1e41b2787
@ -58,7 +58,7 @@ export default class CircularProgress extends React.Component {
|
||||
justifyContent: 'center'
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
{children(fill)}
|
||||
</View>}
|
||||
</View>
|
||||
)
|
||||
@ -74,7 +74,7 @@ CircularProgress.propTypes = {
|
||||
backgroundColor: PropTypes.string,
|
||||
rotation: PropTypes.number,
|
||||
linecap: PropTypes.string,
|
||||
children: PropTypes.object
|
||||
children: PropTypes.func
|
||||
}
|
||||
|
||||
CircularProgress.defaultProps = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user