fix video size
This commit is contained in:
@@ -26,7 +26,7 @@ import { useTheme } from "../context/ThemeContext";
|
||||
import { API_BASE_URL } from "../api/client";
|
||||
import { useCart } from "../context/CartContext";
|
||||
|
||||
const { width: SCREEN_WIDTH } = Dimensions.get("window");
|
||||
const { width: SCREEN_WIDTH, height: SCREEN_HEIGHT } = Dimensions.get("window");
|
||||
const CARD_WIDTH = SCREEN_WIDTH - 48;
|
||||
|
||||
interface ProductCardProps {
|
||||
@@ -562,6 +562,6 @@ const styles = StyleSheet.create({
|
||||
},
|
||||
videoPlayer: {
|
||||
width: "100%",
|
||||
height: Math.round((SCREEN_WIDTH - 10) * 9 / 16),
|
||||
height: Math.round(SCREEN_HEIGHT * 0.65),
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user