diff --git a/package.json b/package.json
index fce0405..ea580df 100644
--- a/package.json
+++ b/package.json
@@ -11,16 +11,16 @@
},
"dependencies": {
"@babel/runtime": "^7.25.6",
- "@react-native-async-storage/async-storage": "1.23.1",
- "@stripe/stripe-react-native": "0.38.3",
- "expo-blur": "~13.0.2",
- "expo": "~51.0.0",
- "expo-auth-session": "~5.0.2",
- "expo-linear-gradient": "~12.7.2",
- "expo-linking": "~6.3.1",
- "expo-web-browser": "~13.0.3",
- "react": "18.2.0",
- "react-native": "0.74.0",
- "react-native-safe-area-context": "4.10.8"
+ "@react-native-async-storage/async-storage": "2.2.0",
+ "@stripe/stripe-react-native": "0.50.3",
+ "expo": "^54.0.30",
+ "expo-auth-session": "~7.0.10",
+ "expo-blur": "~15.0.8",
+ "expo-linear-gradient": "~15.0.8",
+ "expo-linking": "~8.0.11",
+ "expo-web-browser": "~15.0.10",
+ "react": "19.1.0",
+ "react-native": "0.81.5",
+ "react-native-safe-area-context": "5.6.2"
}
}
diff --git a/src/screens/TableScreen.js b/src/screens/TableScreen.js
index 4e137f6..d42e528 100644
--- a/src/screens/TableScreen.js
+++ b/src/screens/TableScreen.js
@@ -1,5 +1,5 @@
import { useEffect, useMemo, useRef, useState } from 'react';
-import { Animated, Pressable, StyleSheet, Text, View } from 'react-native';
+import { Animated, Pressable, StyleSheet, Text, useWindowDimensions, View } from 'react-native';
import { LinearGradient } from 'expo-linear-gradient';
import { BlurView } from 'expo-blur';
import { useSafeAreaInsets } from 'react-native-safe-area-context';
@@ -21,6 +21,8 @@ export default function TableScreen({ token, tableId, user, onLeave }) {
const wsRef = useRef(null);
const pulse = useRef(new Animated.Value(0)).current;
const insets = useSafeAreaInsets();
+ const { width, height } = useWindowDimensions();
+ const isPortrait = height >= width;
useEffect(() => {
const ws = new WebSocket(WS_URL);
@@ -128,6 +130,26 @@ export default function TableScreen({ token, tableId, user, onLeave }) {
const seats = table?.seats || [];
+ if (isPortrait) {
+ return (
+
+
+ Fordítsd el a telefont
+ A blackjack asztal fekvő nézetben működik jól.
+
+
+ );
+ }
+
return (