import React from "react"; import { Platform, View } from "react-native"; import { SafeAreaView } from "react-native-safe-area-context"; import { Link } from "expo-router"; import { useNavigation } from "../../context/NavigationContext"; import { StatusBar } from "expo-status-bar"; import { useColorScheme } from "nativewind"; import { Heading, MutedText, Text } from "../../components/text"; import { Button } from "../../components/button"; import { useAppConfig } from "../../context/AppConfigContext"; export interface WelcomeScreenProps { /** * Optional decorative widget rendered between the brand block and the * action buttons (e.g. vault's PasswordDemoAnimation). Apps with * nothing to render here can omit it. */ decoration?: React.ReactNode; /** * Optional widget rendered top-left/right of the screen. Vault uses * this for its admin server-settings cog. */ topAccessory?: React.ReactNode; } export function WelcomeScreen({ decoration, topAccessory }: WelcomeScreenProps) { const { colorScheme } = useColorScheme(); const isDark = colorScheme === "dark"; const router = useNavigation(); const { appName, Logo, routes, tagline } = useAppConfig(); return ( {topAccessory} {appName} {tagline ? {tagline} : null} {decoration ? ( {decoration} ) : null} By continuing, you agree to our{" "} Terms of Service {" "} and{" "} Privacy Policy ); } export default WelcomeScreen;