Back to React Native Paper

ActivityIndicator

docs/public/4.0/activity-indicator.html

5.15.11.1 KB
Original Source

ActivityIndicator

Activity indicator is used to present progress of some activity in the app. It can be used as a drop-in for the ActivityIndicator shipped with React Native.

Usage

js
import * as React from 'react';
import { ActivityIndicator, Colors } from 'react-native-paper';

const MyComponent = () => (
  <ActivityIndicator animating={true} color={Colors.red800} />
);

export default MyComponent;

Props

animating Type: boolean

Default value: true

Whether to show the indicator or hide it.

color Type: string

The color of the spinner.

size Type: 'small' | 'large' | number

Default value: 'small'

Size of the indicator.

hidesWhenStopped Type: boolean

Default value: true

Whether the indicator should hide when not animating.

style Type: StyleProp<ViewStyle>

theme Type: ReactNativePaper.Theme

Edit this page