1.0.0 • Published 7 years ago

react-native-horizontal-progress-bar v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

react-native-horizontal-progress-bar

Simple animated horizontal component for React Native.


Travis npm npm Issue Stats

Installation

  • yarn add react-native-horizontal-progress-bar

Or, if you prefer using npm:

  • npm i -S react-native-horizontal-progress-bar

Available Props

Check the TypeScript type definition file for further info.

PropTypeDefaultDescription
progressnumberCurrent progress of the component
animatedbooltrueIf set to false, the animation will be disabled
colorstring'#7D85BE'Background color of the progress bar
durationnumber500Duration of the transition between the current progress and the next one.
styleStyle of the ProgressBar container View. Check below for the default style definition
  const defaultStyle = {
    width: '100%',
    height: 10,
    backgroundColor: 'transparent',
  };

Example (TODO)

Contributing

PRs are obviously welcome! :octocat:

Available scripts

  • lint: verify that the eslint configuration is respected

License

MIT