about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-03-20 18:02:18 +0000
committerSamuel Newman <mozzius@protonmail.com>2024-03-20 18:02:18 +0000
commitfb17afc99d8fbc4f6b35e2aca0a3bdfda2b447f4 (patch)
tree15c38eae5dc89665a851b863309c92ab1727677f /src
parent708d0fe3e1fafdc6495e78dbba36b7fe087d62a7 (diff)
downloadvoidsky-fb17afc99d8fbc4f6b35e2aca0a3bdfda2b447f4.tar.zst
dismiss keyboard when opening dialog
Diffstat (limited to 'src')
-rw-r--r--src/components/forms/HostingProvider.tsx3
-rw-r--r--src/view/com/auth/server-input/index.tsx2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/components/forms/HostingProvider.tsx b/src/components/forms/HostingProvider.tsx
index 1653b0da4..11d76316d 100644
--- a/src/components/forms/HostingProvider.tsx
+++ b/src/components/forms/HostingProvider.tsx
@@ -1,5 +1,5 @@
 import React from 'react'
-import {View} from 'react-native'
+import {Keyboard, View} from 'react-native'
 import {msg} from '@lingui/macro'
 import {useLingui} from '@lingui/react'
 
@@ -27,6 +27,7 @@ export function HostingProvider({
   const {_} = useLingui()
 
   const onPressSelectService = React.useCallback(() => {
+    Keyboard.dismiss()
     serverInputControl.open()
     if (onOpenDialog) {
       onOpenDialog()
diff --git a/src/view/com/auth/server-input/index.tsx b/src/view/com/auth/server-input/index.tsx
index 0661b7a35..b26ac1dcb 100644
--- a/src/view/com/auth/server-input/index.tsx
+++ b/src/view/com/auth/server-input/index.tsx
@@ -67,7 +67,7 @@ export function ServerInputDialog({
   return (
     <Dialog.Outer
       control={control}
-      nativeOptions={{sheet: {snapPoints: ['80', '100%']}}}
+      nativeOptions={{sheet: {snapPoints: ['100%']}}}
       onClose={onClose}>
       <Dialog.Handle />