Update example app and README

This commit is contained in:
Markus Lindqvist 2017-11-20 18:38:58 +02:00
parent 0eb673928b
commit 5d690a4788
3 changed files with 3 additions and 3 deletions

View File

@ -37,6 +37,7 @@ Use as follows:
width={15}
fill={100}
tintColor="#00e0ff"
onAnimationComplete={() => console.log('onAnimationComplete')}
backgroundColor="#3d5875" />
```
@ -88,8 +89,6 @@ You can configure the passing by following props:
- **children(fill)** - you can pass function as a child to receive current fill
- **onAnimationComplete** - you can pass a callback function that will be invoked when animation is complete. (see [here](https://facebook.github.io/react-native/docs/animated.html#working-with-animations))
- **onLinearAnimationComplete** - you can pass a callback function that will be invoked when linear animation is complete. (see [here](https://facebook.github.io/react-native/docs/animated.html#working-with-animations))
## Working example app
## Circular progress bar example app

View File

@ -71,6 +71,7 @@ export default class ProgressChart extends React.Component {
backgroundWidth={5}
fill={fill}
tintColor="#00e0ff"
onAnimationComplete={() => console.log('onAnimationComplete')}
backgroundColor="#3d5875" />
<AnimatedCircularProgress

View File

@ -4490,7 +4490,7 @@
"integrity": "sha1-IWevhrvJ+WS9Rb1fN2hOW1SWXjI="
},
"react-native-circular-progress": {
"version": "git+https://github.com/bgryszko/react-native-circular-progress.git#73b1aa72d95d1c35d2d6a6da01dcea3b4f7fdb17",
"version": "git+https://github.com/bgryszko/react-native-circular-progress.git#8049ad15540d67320e77d381ee71c78c1796bfde",
"requires": {
"art": "0.10.1",
"prop-types": "15.6.0"