Table of Contents
- Installation
- Usage
- Props
- Credits
- License
Installation
yarn add progress-react-native
npm install progress-react-native
Also, you need to install react-native-reanimated, & react-native-svg, and follow theirs installation instructions.
Usage
Progress Bar
import * as React from 'react';
import { StyleSheet, View, Text } from 'react-native';
import ProgressReactNative from 'progress-react-native';
export default function App() {
return (
<View style={styles.container}>
<ProgressReactNative preset={'bar'} indeterminate={false} progress={40} duration={2000} />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
});
Props
Built With
License
MIT