0.0.5 • Published 2 years ago

@codinggist/rn-progress v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

rn-progress

A progress indicator component for React Native (both Android and iOS)

Installation

Install component by running following command

npm i @codinggist/rn-progress
or
yarn add @codinggist/rn-progress

This componnet is based on React Native basic components. So, linking is not required.

Usage

import { ProgressBar } from "rn-progress";

// ...

<ProgressBar width={'80%'} height={'20'} />

Props

Following are props to use this component

PropTypeDescription
widthnumber | stringWidth of ProgressBar in numbers or percentage
heightnumber | stringHeight of ProgressBar in numbers or percentage
strokeWidthnumberWidth of outer border or stroke
strokeColorstringStroke color
colorstringColor of Progressbar
startValuenumberStarting value of progress
maxValuenumberMaximum value of progress
currentValuenumberCurrent value of progress (can be set using states). If current value is less than start value, it will be neglected and start value will be used as current value.
backgroundColorstringBackground color for bar

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Note: This package is under development. Contributors are welcome to work on this package.