mirror of
https://github.com/bulwarkmail/native.git
synced 2026-11-03 00:06:39 +00:00
fix: send a quick reply with the first tap while the keyboard is open
This commit is contained in:
@@ -26,6 +26,8 @@ const GRIDS = new Set(['MonthScrollView.tsx', 'TimeGridScrollView.tsx', 'WeekVie
|
||||
const files = [
|
||||
path.join(SRC, 'screens', 'SettingsScreen.tsx'),
|
||||
path.join(SRC, 'screens', 'FilesScreen.tsx'),
|
||||
// The reader's page pager sits around the quick reply box.
|
||||
path.join(SRC, 'screens', 'EmailThreadScreen.tsx'),
|
||||
...walk(path.join(SRC, 'components', 'settings')),
|
||||
...walk(path.join(SRC, 'components', 'calendar')).filter((f) => !GRIDS.has(path.basename(f))),
|
||||
...walk(path.join(SRC, 'components', 'files')),
|
||||
|
||||
@@ -835,6 +835,8 @@ function EmailViewer({ route, navigation, embedded = false, onActiveChange }: Pr
|
||||
keyExtractor={(item) => item.id}
|
||||
horizontal
|
||||
pagingEnabled
|
||||
// Else the first tap on the quick reply's Send only closes the keyboard.
|
||||
keyboardShouldPersistTaps="handled"
|
||||
showsHorizontalScrollIndicator={false}
|
||||
initialScrollIndex={initialIndexRef.current}
|
||||
getItemLayout={(_, index) => ({ length: pageWidth, offset: pageWidth * index, index })}
|
||||
@@ -1467,7 +1469,7 @@ function MoreMenuSheet({
|
||||
</Pressable>
|
||||
</View>
|
||||
</View>
|
||||
<ScrollView style={styles.sheetScroll} bounces={false}>
|
||||
<ScrollView style={styles.sheetScroll} bounces={false} keyboardShouldPersistTaps="handled">
|
||||
{canArchive && (
|
||||
<MoreMenuItem
|
||||
icon={<Archive size={18} color={c.textSecondary} />}
|
||||
|
||||
Reference in New Issue
Block a user