ActivityIndicator

React Native 4 min min read Updated: Jul 26, 2026 Beginner
ActivityIndicator
Beginner Topic 14 of 30

ActivityIndicator

ActivityIndicator is a built-in React Native component used to display a native loading spinner, commonly shown while data is being fetched or a task is in progress.

Basic Usage

javascript import { ActivityIndicator } from 'react-native';

Controlling Size

The size prop accepts either "small" or "large" (or a numeric value on Android), controlling the visual dimensions of the spinner.

Conditional Loading Indicator

ActivityIndicator is typically shown conditionally while a loading state is true, then hidden once data has finished loading.

javascript {loading ? ( ) : ( )}

Full-Screen Loading Overlay

A common pattern is centering the ActivityIndicator inside a full-screen View to create a loading overlay while the app fetches initial data.

javascript

Using ActivityIndicator Inside Buttons

ActivityIndicator is often placed inside a button component to indicate that a submit action, such as a login request, is currently processing.

javascript {loading ? : Login}

Conclusion

ActivityIndicator provides a simple, native way to communicate loading states to users in React Native applications. Using it consistently across your app improves perceived performance and user experience during asynchronous operations.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators