react-native-progress-bar-new
v0.0.1
Published
A customizable React Native progress bar component with animation.
Downloads
52
Readme
ProgressBar Component
A customizable React Native progress bar component with animation.
Installation
npm install --save react-native-progress-bar
Usage
import React from 'react';
import { View, StyleSheet } from 'react-native';
import ProgressBar from 'react-native-progress-bar';
const App = () => {
return (
<View style={styles.container}>
<ProgressBar
progressValue={50}
barColor="#3498db"
containerColor="#bdc3c7"
barHeight={16}
containerStyle={styles.progressBarContainer}
/>
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
progressBarContainer: {
marginTop: 20,
},
});
export default App;