Files
2025-05-18 12:30:04 -07:00

26 lines
601 B
TypeScript

import { View, ActivityIndicator } from "react-native";
import colors from "@/constants/colors";
export function LoadingShade({ isLoading }: { isLoading: boolean }) {
if (isLoading) {
return (
<View
style={{
position: "absolute",
top: 0,
left: 0,
right: 0,
bottom: 0,
justifyContent: "center",
alignItems: "center",
backgroundColor: "rgba(0,0,0,0.2)",
zIndex: 1000,
}}
>
<ActivityIndicator size="large" color={colors.tint} />
</View>
);
}
return null;
}