1import React from 'react';
2import { View, ActivityIndicator } from "react-native";
3
4const MyActivityIndicator = () => {
5 return (
6 <View style={{ flex: 1, justifyContent: "center"}}>
7 //size can be "small" or "large"
8 <ActivityIndicator size="large" color="#00ff00" />
9 </View>
10 );
11}
12
13export default MyActivityIndicator;