fix video size

This commit is contained in:
2026-04-19 19:51:25 +02:00
parent 7e928d6066
commit fe79691095
@@ -25,7 +25,7 @@ import { spacing, borderRadius, fontSize, fontWeight } from "../../theme";
import { API_BASE_URL } from "../../api/client"; import { API_BASE_URL } from "../../api/client";
type Route = RouteProp<ClientStackParamList, "ProductDetail">; type Route = RouteProp<ClientStackParamList, "ProductDetail">;
const { width: SCREEN_WIDTH } = Dimensions.get("window"); const { width: SCREEN_WIDTH, height: SCREEN_HEIGHT } = Dimensions.get("window");
export default function ProductDetailScreen() { export default function ProductDetailScreen() {
const { params } = useRoute<Route>(); const { params } = useRoute<Route>();
@@ -442,7 +442,7 @@ export default function ProductDetailScreen() {
}, },
videoPlayer: { videoPlayer: {
width: "100%", width: "100%",
height: Math.round((SCREEN_WIDTH - 10) * 9 / 16), height: Math.round(SCREEN_HEIGHT * 0.65),
}, },
}), }),
[colors, isDark, catColor], [colors, isDark, catColor],