fix: send a quick reply with the first tap while the keyboard is open

This commit is contained in:
Linus Rath
2026-11-02 23:41:19 +01:00
parent 78b1838d14
commit b9c3f79401
2 changed files with 5 additions and 1 deletions
@@ -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')),
+3 -1
View File
@@ -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} />}