Licence
ISC
Version
1.1.2
Deps
0
Size
2 kB
Vulns
0
Weekly
0
React Native Progress Bar
This is a simple component used to generate a progress bar for your react-native application.
Installation
Use npm or yarn to add to your project.
yarn add rn-progress-baror
npm i rn-progress-barImport into the required file:
import ProgressBar from 'rn-progress-bar';
Styling
For styling, you can pass any style object as props, and it will override the default styles of the component.
const styles = StyleSheet.create({
progressBar: {
height: 12,
borderRadius: 5
}
});
<ProgressBar
style={styles.progressBar}
primary='#f00'
secondary='#fff'
percentage={75}
/>