Use ProgressViewIOS
to render a UIProgressView on iOS.
It was part of React Native Core.
$ npm install @react-native-community/react-native-progress-view --save
$ react-native link @react-native-community/react-native-progress-view
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜@react-native-community/react-native-progress-view
and addRNCProgressView.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNCProgressView.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
import ProgressView from "@react-native-community/react-native-progress-view";
The progress value (between 0 and 1).
Type | Required |
---|---|
number | No |
A stretchable image to display as the progress bar.
Type | Required |
---|---|
Image.propTypes.source | No |
The tint color of the progress bar itself.
Type | Required |
---|---|
string | No |
The progress bar style.
Type | Required |
---|---|
enum('default', 'bar') | No |
A stretchable image to display behind the progress bar.
Type | Required |
---|---|
Image.propTypes.source | No |
The tint color of the progress bar track.
Type | Required |
---|---|
string | No |
The library is released under the MIT license. For more information see LICENSE
.