# react-native-progress-bar-modest

> Simple, animated progress bar component for React Native

Latest version **1.0.3** (published 2017-04-25) · 0 weekly downloads

## Install

```sh
npm install react-native-progress-bar-modest
pnpm add react-native-progress-bar-modest
yarn add react-native-progress-bar-modest
bun add react-native-progress-bar-modest
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2017-04-25 |
| First published | 2017-04-19 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Karol Barkowski |
| Maintainers | kbarkowski |
| Keywords | react, native, react-native, progress, bar, load, loading |

## Links

- npm: https://www.npmjs.com/package/react-native-progress-bar-modest
- Repository: https://github.com/karolbarkowski/react-native-progress-bar-modest
- Homepage: https://github.com/karolbarkowski/react-native-progress-bar-modest#readme
- Issues: https://github.com/karolbarkowski/react-native-progress-bar-modest/issues
- npm.io page: https://npm.io/package/react-native-progress-bar-modest

## Dependencies (2)

- [react](https://npm.io/package/react.md) 16.0.0-alpha.6
- [react-native](https://npm.io/package/react-native.md) 0.43.3

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2017-04-25
- 1.0.2 — 2017-04-20
- 1.0.1 — 2017-04-19
- 1.0.0 — 2017-04-19

## README

# react-native-progress-bar-modest

Simple, animated progress bar for React Native.
Inspired by this native Android component: https://android-arsenal.com/details/1/790

![](https://i.imgur.com/VE5eXNt.gif)

## Installation
`npm install --save react-native-progress-bar-modest`


## Example usage
```javascript
import React, { Component } from 'react';
import {
  AppRegistry,
  StyleSheet,
  View
} from 'react-native';
import ProgressBar from 'react-native-progress-bar-modest';

export default class ProgressBarMinimal extends Component {
  constructor(props) {
    super(props);

    this.state = {
      val: 0,
    };

    const _self = this;

    setInterval(() => {
      _self.setState({
        val: Math.floor(Math.random() * 100)
      });
    }, 1000);
  }

  render() {
    return (
      <View style={styles.container}>
        <ProgressBar reachedBarColor='#5E8AAD' value={this.state.val} />
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    padding: 30,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
});

AppRegistry.registerComponent('ProgressBarMinimal', () => ProgressBarMinimal);
```


## Properties
| Prop | Description | Default |
|---|---|---|
|**`value`**|Current progress value. Ranges from `0..100`.|0|
|**`showValue`**|Shows numeric progress value if set to true.|true|
|**`borderRadius`**|Border radius of progress bar.|0|
|**`reachedBarColor`**|Color of the left side of progress bar. Must be a valid React Native color string.|`#5E8CAD`|
|**`reachedBarHeight`**|Height of the left side of progress bar.|`2`|
|**`unreachedBarColor`**|Color of the right side of progress bar. Must be a valid React Native color string.|`#CFCFCF`|
|**`unreachedBarHeight`**|Height of the right side of progress bar.|`1`|

## Component methods
| Method | Description |
|---|---|
| **`setValue(value)`** | The recommended way to update the progress of the progress bar is to use the `value` property. If you prefer, you can use this `setValue` method to update the progress directly. To access this method, set the `ref` property on the `<ProgressBar>` and call `this.refs.progressBarName.setValue(50)` |

---
_Source: https://npm.io/package/react-native-progress-bar-modest · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
