Open History to see the last commit
1import { ActivityIndicator, StatusBar, View, useColorScheme } from "react-native";
2import { useSafeAreaInsets } from "react-native-safe-area-context";
3import { useThemeColor } from "../lib/useThemeColor";
4
5import { AppText as Text } from "./AppText";
6import { BrandMark } from "./BrandMark";
7
8export function LoadingScreen(props: { readonly message: string }) {
9 const colorScheme = useColorScheme();
10 const screenBg = useThemeColor("--color-screen");
11 const insets = useSafeAreaInsets();
12
13 return (
14 <View className="flex-1 bg-screen" style={{ paddingTop: insets.top }}>
15 <StatusBar
16 barStyle={colorScheme === "dark" ? "light-content" : "dark-content"}
17 backgroundColor={screenBg as string}
18 translucent
19 />
20 <View className="flex-1 items-center justify-center gap-5 px-6">
21 <BrandMark compact />
22 <ActivityIndicator size="large" />
23 <Text className="font-t3-bold text-lg text-foreground">{props.message}</Text>
24 </View>
25 </View>
26 );
27}