import Constants from "expo-constants"; import { Link } from "expo-router"; import { Text, View } from "react-native"; import { Card, CardContent, CardFooter, CardHeader, } from "../components/ui/card"; import { Separator } from "../components/ui/separator"; import { useServerStore } from "../hooks/useServerCheck"; export default function Update() { const version = Constants.expoConfig?.version; const build = Constants.expoConfig?.android?.versionCode ?? 1; const server = useServerStore((s) => s.serverVersion); return ( Update Required Your app is out of date and needs to be updated App version - v{version}-{build} Server version - v{server?.versionName}-{server?.versionCode} To update the app please head go to a computer and open LST. Then head to Scan. Click update Then follow the instructions on screen {server && server?.versionCode >= build && ( Home )} ); }