diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-30 16:40:43 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-03-30 16:41:15 +0000 |
| commit | a9c21819255860f97e5174181a357999dfba5d49 (patch) | |
| tree | cc40653618f98dcc33aae8f0dd7e98ad465191d0 /apps/mobile | |
| parent | 46b78eaac30be26fe40520e97786563344af8403 (diff) | |
| download | karakeep-a9c21819255860f97e5174181a357999dfba5d49.tar.zst | |
fix(mobile): Fix the non-smooth server address input field in signin
Diffstat (limited to 'apps/mobile')
| -rw-r--r-- | apps/mobile/app/signin.tsx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/mobile/app/signin.tsx b/apps/mobile/app/signin.tsx index 8402bd43..283528df 100644 --- a/apps/mobile/app/signin.tsx +++ b/apps/mobile/app/signin.tsx @@ -16,6 +16,7 @@ import { api } from "@/lib/trpc"; export default function Signin() { const { settings, setSettings } = useAppSettings(); + const [serverAddress, setServerAddress] = useState(settings.address); const [error, setError] = useState<string | undefined>(); @@ -66,10 +67,13 @@ export default function Signin() { <Input className="w-full" placeholder="Server Address" - value={settings.address} + value={serverAddress} autoCapitalize="none" keyboardType="url" - onChangeText={(e) => setSettings({ ...settings, address: e })} + onChangeText={(e) => { + setServerAddress(e); + setSettings({ ...settings, address: e }); + }} /> </View> <View className="gap-2"> @@ -90,6 +94,8 @@ export default function Signin() { placeholder="Password" secureTextEntry value={formData.password} + autoCapitalize="none" + textContentType="password" onChangeText={(e) => setFormData((s) => ({ ...s, password: e }))} /> </View> |
