ActivityIndicator
Important: The Vega SDK supports many of the React Native version 0.72 components and APIs. You can use the supported components and APIs in the same manner as an ordinary React Native app. This page lists a specific React Native feature supported by the Vega SDK and contains React Native v72 documentation from the reactnative.dev website created by Meta and other contributors and licensed under the Attribution 4.0 International License. For more information about React Native v72, see the React Native documentation, version 0.72. For the most current feature information, see the Release Notes.
Displays a circular loading indicator.
Example
import React from 'react';
import {ActivityIndicator, StyleSheet, View} from 'react-native';
const App = () => (
<View style={[styles.container, styles.horizontal]}>
<ActivityIndicator />
<ActivityIndicator size="large" />
<ActivityIndicator size="small" color="#0000ff" />
<ActivityIndicator size="large" color="#00ff00" />
</View>
);
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
},
horizontal: {
flexDirection: 'row',
justifyContent: 'space-around',
padding: 10,
},
});
export default App;
Reference
Props
View Props
Inherits View Props.
animating
Whether to show the indicator (true
) or hide it (false
).
Type | Default |
---|---|
bool | true |
color
The foreground color of the spinner.
Type | Default |
---|---|
color | null (system accent default color) '#999999' |
size
Size of the indicator.
Type | Default |
---|---|
enum('small' , 'large' ) |
'small' |
Last updated: Sep 30, 2025