An open API service indexing awesome lists of open source software.

https://github.com/superraytin/react-native-circular-indicator

A simple circular progress indicator component for React Native
https://github.com/superraytin/react-native-circular-indicator

Last synced: 6 months ago
JSON representation

A simple circular progress indicator component for React Native

Awesome Lists containing this project

README

        

# react-native-circular-indicator

A simple circular progress indicator component for React Native

[![NPM version][npm-image]][npm-url]
[![Downloads][downloads-image]][npm-url]

[npm-url]: https://npmjs.org/package/react-native-circular-indicator
[downloads-image]: http://img.shields.io/npm/dm/react-native-circular-indicator.svg
[npm-image]: http://img.shields.io/npm/v/react-native-circular-indicator.svg

## Screenshots

![](examples/images/demo1.png) ![](examples/images/demo2.png) ![](examples/images/demo3.png)

## Installation

```
yarn add react-native-circular-indicator
```

or

```
npm i react-native-circular-indicator
```

## Examples

```jsx


Scores
5846

```

![](examples/images/demo1.png)

```jsx


41%

```

![](examples/images/demo2.png)

```jsx


Status
Good

```

![](examples/images/demo3.png)

## API

| prop | type | default value |
| --------- | ------------- | ------------- |
| `size` | `number` | |
| `percent` | `number` | 1 |
| `gapAngle` | `number` | 90 |
| `backgroundBarColor` | `string` | '#F5F5F4' |
| `progressBarWidth` | `number` | 15 |
| `progressBarColor` | `string` `[number, string][]` | '#2C40F3' |
| `progressBarOpacity` | `number` | 1 |
| `progressFillColor` | `string` | 'none' |
| `scaleAngles` | `number[]` | |
| `scaleWidth` | `number` | 2 |
| `scaleColor` | `string` | '#2a2a2a' |
| `scaleOpacity` | `number` | 0.1 |
| `svgProps` | `Record` | {} |