Commit 2f22c93a by G

using the safe area top inset to pad down elements

parent 832bf5bb
......@@ -7,12 +7,15 @@ import Text from "@components/bases/Text";
import { Fontisto } from "@expo/vector-icons";
import { containers } from "@styles/Commons";
import { KeyboardAvoidingView, Platform, TouchableOpacity, View } from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context";
const UserLoginScreen = () => {
const insets = useSafeAreaInsets();
return (
<BackgroundDefault>
<View style={containers.containerFull}>
<Box style={{ height: "20%" }} p={"l"} paddingTop={"x64"}>
<View style={[containers.containerFull, { paddingTop: insets.top }]}>
<Box style={{ height: "20%" }} px={"l"}>
<Box
px={"m"}
justifyContent={"space-between"}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment