import * as React from "react";
import { View, Image, ActivityIndicator } from "react-native";

type Props = {
  show: boolean;
  imgUrl?: string;
  source?: any;
};

function LaunchScreen({ imgUrl, show, source }: Props) {
  if (!show) return null;
  return (
    <View
      style={{
        position: "absolute",
        width: "100%",
        height: "100%",
        backgroundColor: "white",
      }}
    >
      {/* <Image
        style={{ width: "100%", height: "100%" }}
        resizeMode="contain"
        source={source || { uri: imgUrl }}
      /> */}
      <ActivityIndicator color="black" size="large" />
    </View>
  );
}

export default LaunchScreen;
