Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Dismiss keyboard when closing dialog (#3053)

authored by

Hailey and committed by
GitHub
04d4c977 39d324ab

+10 -2
+10 -2
src/components/Dialog/index.tsx
··· 1 1 import React, {useImperativeHandle} from 'react' 2 - import {View, Dimensions} from 'react-native' 2 + import {View, Dimensions, Keyboard} from 'react-native' 3 3 import BottomSheet, { 4 4 BottomSheetBackdrop, 5 5 BottomSheetScrollView, ··· 78 78 const onChange = React.useCallback( 79 79 (index: number) => { 80 80 if (index === -1) { 81 + Keyboard.dismiss() 81 82 try { 82 83 closeCallback.current?.() 83 84 } catch (e: any) { ··· 190 191 191 192 export function Handle() { 192 193 const t = useTheme() 194 + 195 + const onTouchStart = React.useCallback(() => { 196 + Keyboard.dismiss() 197 + }, []) 198 + 193 199 return ( 194 - <View style={[a.absolute, a.w_full, a.align_center, a.z_10, {height: 40}]}> 200 + <View 201 + style={[a.absolute, a.w_full, a.align_center, a.z_10, {height: 40}]} 202 + onTouchStart={onTouchStart}> 195 203 <View 196 204 style={[ 197 205 a.rounded_sm,