What is the purpose of the ActivityIndicator component in React Native?
The ActivityIndicator component in React Native is used to indicate loading or processing activity to users. It displays a spinning indicator that represents ongoing work in the background. For example, you can use ActivityIndicator to show loading spinners while fetching data from an API or performing long-running tasks.