import { WS_BASEURL } from "@/lib/constants"; import { cn } from "@/lib/utils"; import { useAuth } from "@/stores/authStore"; import BackButton from "@ui/BackButton"; import Box from "@ui/Box"; import Button from "@ui/Button"; import { Ionicons } from "@ui/Icons"; import { Stack } from "expo-router"; import React, { useEffect, useRef } from "react"; import { Platform } from "react-native"; import { VncScreen, VncScreenHandle } from "react-vnc"; import { openFullscreen } from "./lib"; const VncPage = () => { const containerRef = useRef(null!); const vncRef = useRef(null!); const { token } = useAuth(); const onFullscreen = () => { openFullscreen(containerRef.current); }; if (Platform.OS !== "web") { return null; } return ( <> , headerRight: () => (