ActivityIndicator

Displays a customizable activity indicator.

import { ActivityIndicator } from 'react-native';

<ActivityIndicator {...props} />;

API

Props

...ViewProps ?ViewProps

All the props supported by View.

animating ?boolean

Default true. Set whether the activity indicator is animating.

color ?string

Default "#1976D2". Set the color of the activity indicator.

hidesWhenStopped ?boolean

Default true. Set whether the activity indicator is hidden when not animating.

size ?("small" | "large" | number)

Default "small". Set the size of the activity indicator.


Examples

Updated
Edit
React Native for WebCopyright © Nicolas Gallagher and Meta Platforms, Inc.