react native spinners code example
Example 1: react native spinner
import React from 'react';
import { View, ActivityIndicator } from "react-native";
const MyActivityIndicator = () => {
return (
<View style={{ flex: 1, justifyContent: "center"}}>
<ActivityIndicator size="large" color="#00ff00" />
</View>
);
}
export default MyActivityIndicator;
Example 2: react-native spinner
import { View, ActivityIndicator } from "react-native";
function MyActivityIndicator = () => {
return (
<View style={{ flex: 1, justifyContent: "center"}}>
<ActivityIndicator size="large" color="#00ff00" />
</View>
);
}
export default MyActivityIndicator;