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

  For TV Examples: LRUD navigation is already enabled in this sandbox. Use your keyboard arrow keys to move focus.

Updated
React Native Web for TVPortions Copyright © Nicolas Gallagher, Meta Platforms, Inc., Facebook, Inc. and affiliates, and other contributors as noted in file headers and THIRD_PARTY_NOTICES.md. Modifications and TV extensions Copyright © Harpreet Singh and contributors.