Version: 0.63

🚧 ProgressViewIOS

Deprecated. Use @react-native-community/progress-view instead.

Uses ProgressViewIOS to render a UIProgressView on iOS.

Example

import React from 'react';
import {View, StyleSheet, ProgressViewIOS, Text} from 'react-native';
const App = () => {
return (
<View style={styles.container}>
<View style={styles.example}>
<Text>Progress Bar - 0%</Text>
<ProgressViewIOS style={styles.progress} />
</View>
<View style={styles.example}>
<Text>Colored Progress Bar - 50%</Text>
<ProgressViewIOS
style={styles.progress}
progressTintColor=""
progress={0.5}
/>
</View>
<View>
<Text>Progress Bar - 100%</Text>
<ProgressViewIOS
style={styles.progress}
progressTintColor="black"
progress={1}
/>
</View>
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
example: {
marginVertical: 20,
},
progress: {
width: 200,
},
});
export default App;

Reference

Props

Inherits View Props.

progress

The progress value (between 0 and 1).

TypeRequired
numberNo

progressImage

A stretchable image to display as the progress bar.

TypeRequired
Image.propTypes.sourceNo

progressTintColor

The tint color of the progress bar itself.

TypeRequired
stringNo

progressViewStyle

The progress bar style.

TypeRequired
enum('default', 'bar')No

trackImage

A stretchable image to display behind the progress bar.

TypeRequired
Image.propTypes.sourceNo

trackTintColor

The tint color of the progress bar track.

TypeRequired
stringNo