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