React Native Progress View iOS Library
npm install @react-native-community/progress-view[![Build Status][build-badge]][build]
[![Windows CI Status][windows-ci-badge]][build]
[![Version][version-badge]][package]
![Platforms][support-badge]
[![MIT License][license-badge]][license]
[![Lean Core Badge][lean-core-badge]][lean-core-issue]
ProgressBar Component for macOS, iOS (based on UIProgressView), Android, and Windows.
| macOS | iOS | Android | Windows |
| ----- | --- | --- | ---- |
|
|
|
|
> |
``sh`
npm install @react-native-community/progress-view --save
or
`sh`
yarn add @react-native-community/progress-view
- React Native 0.60+
The package is automatically linked when building the app. All you need to do is:
`sh`
npx pod-install
- React Native <= 0.59
Run the following commands
`sh`
react-native link @react-native-community/progress-view
#### Windows
##### Add the progress-view project to your solution.
1. Open the solution in Visual Studio 2019
2. Right-click Solution icon in Solution Explorer > Add > Existing Project
Select node_modules\@react-native-community\progress-view\windows\progress-view\progress-view.vcxproj
##### windows/myapp.sln
Add a reference to progress-view to your main application project. From Visual Studio 2019:
Right-click main application project > Add > Reference...
Check progress-view from Solution Projects.
##### pch.h
Add #include "winrt/progress_view.h".
##### app.cpp
Add PackageProviders().Append(winrt::progress_view::ReactPackageProvider()); before InitializeComponent();.
#### IOSManually linking the library - iOS
1. In XCode, in the project navigator, right click Libraries ➜ Add Files to [your project's name]node_modules
2. Go to ➜ @react-native-community/progress-view and add RNCProgressView.xcodeprojlibRNCProgressView.a
3. In XCode, in the project navigator, select your project. Add to your project's Build Phases ➜ Link Binary With LibrariesCmd+R
4. Run your project ()
Import ProgressView from @react-native-community/progress-view
`javascript`
import {ProgressView} from "@react-native-community/progress-view";
Add ProgressView like this
`jsx`
trackTintColor="blue"
progress={0.7}
/>
#### Windows
1. Clone branch
2. cd into progress_view and run yarn installyarn start:windows
3. Start metro server with example/windows/ProgressViewExample.sln
4. Open Visual Studios and open
5. Set to Debug x64 and start solution
#### IOS
1. Clone branch
2. cd into progress-view and run yarn installpod install
2. cd into example/ios and run yarn ios
4. cd back into progress-view and run
#### macOS
1. Clone branch
2. cd into progress-view and run yarn installpod install
2. cd into example/macos/example/macos and run
4. Open the newly created example.xcworkspace in Xcode, build, and run
* progress
* progressImage
* progressTintColor
* progressViewStyle
* trackImage
* trackTintColor
---
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. Network images only work on Windows.
| Type | Required |
| ---------------------- | -------- |
| enum('default', 'bar') | No |
---
A stretchable image to display behind the progress bar. Network images only work on Windows.
| Type | Required |
| ---------------------- | -------- |
| Image.propTypes.source | No |
---
The tint color of the progress bar track.
| Type | Required |
| ------ | -------- |
| string | No |
Turns progress bar into an indeterminate progress bar
| Type | Required | Platform |
| ------ | -------- | -------- |
| bool | No | Windows |
- Kaiden Sin - Passionate Product Maker and Coder
- Jesse Katsumata
The library is released under the MIT license. For more information see LICENSE`.
[build-badge]: https://github.com/react-native-community/progress-view/workflows/Build/badge.svg
[windows-ci-badge]:https://github.com/react-native-community/progress-view/workflows/Windows%20CI/badge.svg
[build]: https://github.com/react-native-community/progress-view/actions
[version-badge]: https://img.shields.io/npm/v/@react-native-community/progress-view.svg?style=flat-square
[package]: https://www.npmjs.com/package/@react-native-community/progress-view
[support-badge]:https://img.shields.io/badge/platforms-ios%20|%20android%20|%20macos%20|%20windows-lightgrey.svg?style=flat-square
[license-badge]: https://img.shields.io/npm/l/@react-native-community/progress-view.svg?style=flat-square
[license]: https://opensource.org/licenses/MIT
[lean-core-badge]: https://img.shields.io/badge/Lean%20Core-Extracted-brightgreen.svg?style=flat-square
[lean-core-issue]: https://github.com/facebook/react-native/issues/23313