Fix menues padding on android

This commit is contained in:
Zoe Roux 2023-12-13 21:35:45 +01:00
parent 21c4a7c577
commit 8640fefc8b
4 changed files with 19 additions and 0 deletions

View File

@ -21,6 +21,7 @@
"react-native-blurhash": "*",
"react-native-fast-image": "*",
"react-native-reanimated": "*",
"react-native-safe-area-context": "*",
"react-native-svg": "*",
"yoshiki": "*"
},
@ -40,6 +41,9 @@
"react-native-fast-image": {
"optional": true
},
"react-native-safe-area-context": {
"optional": true
},
"react-native-web": {
"optional": true
}

View File

@ -30,6 +30,7 @@ import {
useState,
} from "react";
import { StyleSheet, Pressable, View } from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { percent, px, sm, useYoshiki, vh, xl } from "yoshiki/native";
import Close from "@material-symbols/svg-400/rounded/close-fill.svg";
import { Icon, IconButton } from "./icons";
@ -55,6 +56,7 @@ const Menu = <AsProps,>({
onMenuOpen?: () => void;
onMenuClose?: () => void;
} & Omit<AsProps, "onPress">) => {
const insets = useSafeAreaInsets();
const [isOpen, setOpen] = useState(false);
useEffect(() => {
@ -89,6 +91,7 @@ const Menu = <AsProps,>({
borderTopRightRadius: { xs: px(26), xl: 0 },
paddingTop: { xs: px(26), xl: 0 },
marginTop: { xs: px(72), xl: 0 },
paddingBottom: insets.bottom,
},
sm({
maxWidth: px(640),

View File

@ -0,0 +1,9 @@
import { Menu } from "@kyoo/primitives";
export const EpisodesContext = () => {
return (
<Menu>
<Menu.Item />
</Menu>
);
};

View File

@ -2900,6 +2900,7 @@ __metadata:
react-native-blurhash: "*"
react-native-fast-image: "*"
react-native-reanimated: "*"
react-native-safe-area-context: "*"
react-native-svg: "*"
yoshiki: "*"
dependenciesMeta:
@ -2920,6 +2921,8 @@ __metadata:
optional: true
react-native-fast-image:
optional: true
react-native-safe-area-context:
optional: true
react-native-web:
optional: true
languageName: unknown