dismiss keyboard when opening dialog
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import {View} from 'react-native'
|
import {Keyboard, View} from 'react-native'
|
||||||
import {msg} from '@lingui/macro'
|
import {msg} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
|
|
||||||
@@ -27,6 +27,7 @@ export function HostingProvider({
|
|||||||
const {_} = useLingui()
|
const {_} = useLingui()
|
||||||
|
|
||||||
const onPressSelectService = React.useCallback(() => {
|
const onPressSelectService = React.useCallback(() => {
|
||||||
|
Keyboard.dismiss()
|
||||||
serverInputControl.open()
|
serverInputControl.open()
|
||||||
if (onOpenDialog) {
|
if (onOpenDialog) {
|
||||||
onOpenDialog()
|
onOpenDialog()
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ export function ServerInputDialog({
|
|||||||
return (
|
return (
|
||||||
<Dialog.Outer
|
<Dialog.Outer
|
||||||
control={control}
|
control={control}
|
||||||
nativeOptions={{sheet: {snapPoints: ['80', '100%']}}}
|
nativeOptions={{sheet: {snapPoints: ['100%']}}}
|
||||||
onClose={onClose}>
|
onClose={onClose}>
|
||||||
<Dialog.Handle />
|
<Dialog.Handle />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user