Commit c36f82a6 by G

keyboard no longer hiding input fields

parent 0fb08aa4
...@@ -15,6 +15,10 @@ const UserLoginScreen = () => { ...@@ -15,6 +15,10 @@ const UserLoginScreen = () => {
return ( return (
<BackgroundDefault> <BackgroundDefault>
<View style={[containers.containerFull, { paddingTop: insets.top }]}> <View style={[containers.containerFull, { paddingTop: insets.top }]}>
<KeyboardAvoidingView
behavior={Platform.OS === "ios" ? "height" : "height"}
style={{ flex: 1 }}
>
<Box style={{ height: "20%" }} px={"l"}> <Box style={{ height: "20%" }} px={"l"}>
<Box <Box
px={"m"} px={"m"}
...@@ -30,13 +34,8 @@ const UserLoginScreen = () => { ...@@ -30,13 +34,8 @@ const UserLoginScreen = () => {
</Box> </Box>
</Box> </Box>
<ContainerBorderTopCurved> <ContainerBorderTopCurved>
<Box p={"l"} style={{ height: "70%" }} paddingTop={"x100"}> <Box p={"l"} paddingTop={"x100"} mb={"s"}>
<KeyboardAvoidingView <Box>
behavior={Platform.OS === "ios" ? "height" : "height"}
style={{ flex: 1 }}
>
<View>
<Box mb={"x64"}>
<Text fontSize={40} fontWeight={"bold"}> <Text fontSize={40} fontWeight={"bold"}>
Connexion Connexion
</Text> </Text>
...@@ -47,10 +46,8 @@ const UserLoginScreen = () => { ...@@ -47,10 +46,8 @@ const UserLoginScreen = () => {
<Input label="Email" /> <Input label="Email" />
<Input label="Mot de passe" secureTextEntry={true} /> <Input label="Mot de passe" secureTextEntry={true} />
</Box> </Box>
</View>
</KeyboardAvoidingView>
</Box> </Box>
<Box style={{ height: "20%" }} p={"s"}> <Box p={"s"}>
<Button <Button
variant={"full"} variant={"full"}
textVariants={"primary"} textVariants={"primary"}
...@@ -65,10 +62,8 @@ const UserLoginScreen = () => { ...@@ -65,10 +62,8 @@ const UserLoginScreen = () => {
/> />
</Box> </Box>
</ContainerBorderTopCurved> </ContainerBorderTopCurved>
</KeyboardAvoidingView>
</View> </View>
{/* <SafeAreaView style={containers.containerFlexUno}> */}
{/* </SafeAreaView> */}
</BackgroundDefault> </BackgroundDefault>
); );
}; };
......
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