Update README.md

This commit is contained in:
Marc Shilling 2016-04-12 17:06:31 -04:00
parent 2c04c79d51
commit 1231cf2113

View File

@ -48,6 +48,17 @@ You can also define a function, that'll receive current progress and for example
</AnimatedCircularProgress>
```
Finally, you can manually trigger a duration-based timing animation by putting a ref on the component and calling the `performLinearAnimation(toValue, duration)` function like so:
```jsx
<AnimatedCircularProgress
ref='circularProgress'
...
/>
```
```javascript
this.refs.circularProgress.performLinearAnimation(100, 8000); // Will fill the progress bar linearly in 8 seconds
```
## Configuration
You can configure the passing by following props: