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 threadgate settings are opened (#2161)

authored by

Ansh and committed by
GitHub
0f7dbbba f7ec7f70

+5 -1
+5 -1
src/view/com/composer/threadgate/ThreadgateBtn.tsx
··· 1 1 import React from 'react' 2 - import {TouchableOpacity, StyleSheet} from 'react-native' 2 + import {TouchableOpacity, StyleSheet, Keyboard} from 'react-native' 3 3 import { 4 4 FontAwesomeIcon, 5 5 FontAwesomeIconStyle, ··· 11 11 import {msg} from '@lingui/macro' 12 12 import {useModalControls} from '#/state/modals' 13 13 import {ThreadgateSetting} from '#/state/queries/threadgate' 14 + import {isNative} from '#/platform/detection' 14 15 15 16 export function ThreadgateBtn({ 16 17 threadgate, ··· 26 27 27 28 const onPress = () => { 28 29 track('Composer:ThreadgateOpened') 30 + if (isNative && Keyboard.isVisible()) { 31 + Keyboard.dismiss() 32 + } 29 33 openModal({ 30 34 name: 'threadgate', 31 35 settings: threadgate,