import React from 'react'; import {View, StyleSheet, ActivityIndicator, ViewStyle} from 'react-native'; import {COLORS} from '../../utilities/constants'; import styles from './styles'; interface LoaderProps { loading: boolean; absolute?: boolean; backgroundColor?: string; containerStyle?: ViewStyle; loaderColor?: string; } const Loader: React.FC = ({ loading, absolute, backgroundColor, containerStyle, loaderColor, }) => { if (!loading) { return null; } if (absolute) { return ( ); } return ( ); }; export default Loader;