import { ActivityIndicator, Text, View } from 'react-native';
import { styles } from './styles';
export const LoadingOverlay = ({
  isLoading,
  loadingText
}) => {
  if (!isLoading) {
    return null;
  }
  return /*#__PURE__*/React.createElement(View, {
    style: styles.overlay
  }, /*#__PURE__*/React.createElement(View, {
    style: styles.indicatorContainer
  }, /*#__PURE__*/React.createElement(ActivityIndicator, {
    size: "large",
    color: "#fff"
  }), loadingText && /*#__PURE__*/React.createElement(Text, {
    style: styles.loadingText
  }, loadingText)));
};
//# sourceMappingURL=index.js.map