import React, { memo } from 'react';
import { ActivityIndicator, Colors, DarkTheme } from 'react-native-paper';

const Loader = ({theme,isloading,size,...props}) => (
  <ActivityIndicator 
  animating={isloading} 
  color={theme} 
  size={size}
  style={props.style}
  />
);

export default memo(Loader);