react-native/docs/progressviewios.md

111 lines
1.4 KiB
Markdown
Raw Normal View History

---
id: progressviewios
title: ProgressViewIOS
layout: docs
category: components
permalink: docs/progressviewios.html
next: refreshcontrol
previous: progressbarandroid
---
Use `ProgressViewIOS` to render a UIProgressView on iOS.
### Props
* [ViewPropTypes props...](docs/viewproptypes.html#props)
- [`progress`](docs/progressviewios.html#progress)
- [`progressImage`](docs/progressviewios.html#progressimage)
- [`progressTintColor`](docs/progressviewios.html#progresstintcolor)
- [`progressViewStyle`](docs/progressviewios.html#progressviewstyle)
- [`trackImage`](docs/progressviewios.html#trackimage)
- [`trackTintColor`](docs/progressviewios.html#tracktintcolor)
---
# Reference
## Props
### `progress`
The progress value (between 0 and 1).
| Type | Required |
| - | - |
| number | No |
---
### `progressImage`
A stretchable image to display as the progress bar.
| Type | Required |
| - | - |
| Image.propTypes.source | No |
---
### `progressTintColor`
The tint color of the progress bar itself.
| Type | Required |
| - | - |
| string | No |
---
### `progressViewStyle`
The progress bar style.
| Type | Required |
| - | - |
| enum('default', 'bar') | No |
---
### `trackImage`
A stretchable image to display behind the progress bar.
| Type | Required |
| - | - |
| Image.propTypes.source | No |
---
### `trackTintColor`
The tint color of the progress bar track.
| Type | Required |
| - | - |
| string | No |