react-native-multi-progress-bar
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

react-native-multi-progress-bar

React Native Multi Progress Bar

Installation

npm install react-native-multi-progress-bar

Usage

import MultiProgressBar from 'react-native-multi-progress-bar';

// ...

<MultiProgressBar
    arrayOfProgressObjects={[
        { color: 'red', value: 0.1 }, // If there are multiple bars then value should be always less than 1
        { color: 'blue', value: 0.2 }, // Sum of all the values should be less than or equal to 1
        { color: 'pink', value: 0.3 },
        { color: 'pink', value: 0.4 },
    ]}
    barContainerStyle={{ height: 50 }} // This includes changing styles of the container of the bar for example height, background colour.
    barStyle={{ borderRadius: 30 }} // This includes changing styles of the bar for ex border radius.
/>

Contributing

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

License

MIT


Made with create-react-native-library

Package Sidebar

Install

npm i react-native-multi-progress-bar

Weekly Downloads

0

Version

0.1.1

License

MIT

Unpacked Size

35.7 kB

Total Files

15

Last publish

Collaborators

  • babar_bahadur