<ProgressBar
progress={0.1}
ref={ref => {
this.progressBar = ref;
}}
/>
// Add 0.2 value in current value of progress
onUpdate() {
this.progressBar.update(this.progressBar.value() + 0.2);
}
Prop | Description | Default |
---|---|---|
width |
Progress Width. | Screen Width |
progress |
The progress value for the progress bar. Ranges from 0..1 . |
None |
easingDuration |
The time taken to complete the animation in milliseconds. | 500 |
easing |
Function from Easing . |
Easing.inOut(Easing.ease) |
fillStyle |
The style for the progress bar fill. | None |
style |
The style for the progress bar's background. | None |
Method | Description |
---|---|
update(progress) |
The recommended way to update the progress of the progress bar is to use the progress property. If you prefer, you can use this update method to update the progress directly. To access this method, set the ref property on the <ProgressBar> and call this.progressBar.update(0.3) |
value() |
This will return current value of progress. To access this method, set the ref property on the <ProgressBar> and call this.progressBar.value() |