loading message react native code example
Example 1: react native activity indicator
import React from 'react';
import { View, ActivityIndicator } from "react-native";
const MyActivityIndicator = () => {
return (
<View style={{ flex: 1, justifyContent: "center"}}>
//size can be "small" or "large"
<ActivityIndicator size="large" color="#00ff00" />
</View>
);
}
export default MyActivityIndicator;
Example 2: spinner react native
yarn add react-native-loading-spinner-overlay