From cd10200c64572ab09112ddda55fc1057bac233ab Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Fri, 15 Mar 2024 00:42:22 +0000 Subject: mobile: Fix keyboard interactions in search and signin form --- apps/mobile/app/signin.tsx | 111 ++++++++++++---------- apps/mobile/components/bookmarks/BookmarkList.tsx | 3 +- 2 files changed, 64 insertions(+), 50 deletions(-) (limited to 'apps/mobile') diff --git a/apps/mobile/app/signin.tsx b/apps/mobile/app/signin.tsx index 63e48f22..da7e2fea 100644 --- a/apps/mobile/app/signin.tsx +++ b/apps/mobile/app/signin.tsx @@ -1,5 +1,12 @@ import { useEffect, useState } from "react"; -import { Text, View } from "react-native"; +import { + Keyboard, + KeyboardAvoidingView, + Platform, + Text, + TouchableWithoutFeedback, + View, +} from "react-native"; import { useRouter } from "expo-router"; import Logo from "@/components/Logo"; import { Button } from "@/components/ui/Button"; @@ -48,53 +55,59 @@ export default function Signin() { }; return ( - - - - - {error && ( - {error} - )} - - Server Address - - setSettings({ ...settings, address: e.nativeEvent.text }) - } - /> - - - Email - setFormData((s) => ({ ...s, email: e }))} - /> - - - Password - setFormData((s) => ({ ...s, password: e }))} - /> - -