import { faCheck, faCheckCircle, faExclamationCircle, } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-native-fontawesome"; import { StatusBar } from "expo-status-bar"; import { Platform, SafeAreaView, StyleSheet, Text, View, StatusBar as StatusBars, Dimensions, } from "react-native"; import { ToastProvider } from "react-native-toast-notifications"; import Route from "./app/routes/route"; // import WebSocket from "ws"; // import { WebSocket } from 'react-native'; // const ws = new WebSocket('wss://192.168.50.15:4028/'); const height = Dimensions.get("window").height; const width = Dimensions.get("window").width; export default function App() { // const ws = new WebSocket("ws://localhost:8080"); return ( ( // // {toast.message} // // ) // }} renderToast={(toast) => ( {toast.message} )} > ); } const styles = StyleSheet.create({ container: { // flex: 1, backgroundColor: "#ffff", alignItems: "center", // justifyContent: "center", height: "100%", paddingTop: Platform.OS === "android" ? StatusBars.currentHeight + 10 : "", }, wrapper: { height: "100%", width: "100%", // backgroundColor:"#333" }, });