From f0c86345b57baed1e165fd7e72b504a48d0e5aec Mon Sep 17 00:00:00 2001 From: adityavardhansharma Date: Fri, 31 Jul 2026 01:46:20 +0100 Subject: [PATCH] fix(mobile): keep Android new-thread composer above keyboard --- .../features/threads/NewTaskDraftScreen.tsx | 135 +++++++++--------- 1 file changed, 71 insertions(+), 64 deletions(-) diff --git a/apps/mobile/src/features/threads/NewTaskDraftScreen.tsx b/apps/mobile/src/features/threads/NewTaskDraftScreen.tsx index f37b5559a4a5..36af033b5e36 100644 --- a/apps/mobile/src/features/threads/NewTaskDraftScreen.tsx +++ b/apps/mobile/src/features/threads/NewTaskDraftScreen.tsx @@ -2,7 +2,11 @@ import { NativeStackScreenOptions } from "../../native/StackHeader"; import { StackActions, useNavigation, usePreventRemove } from "@react-navigation/native"; import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { Alert, InteractionManager, Platform, View, useColorScheme } from "react-native"; -import { KeyboardAvoidingView, useKeyboardState } from "react-native-keyboard-controller"; +import { + KeyboardAvoidingView, + KeyboardStickyView, + useKeyboardState, +} from "react-native-keyboard-controller"; import { useSafeAreaInsets } from "react-native-safe-area-context"; import { useThemeColor } from "../../lib/useThemeColor"; import { useFontFamily } from "../../lib/useFontFamily"; @@ -1057,73 +1061,76 @@ export function NewTaskDraftScreen(props: { navigation.goBack()} /> - - - - + - - {isExpanded && flow.attachments.length > 0 ? ( - - undefined : flow.removeAttachment - } + + {isExpanded && flow.attachments.length > 0 ? ( + + undefined : flow.removeAttachment + } + /> + + ) : null} + {promptEditor} + {!isExpanded ? ( + void handleStart()} /> - - ) : null} - {promptEditor} - {!isExpanded ? ( - void handleStart()} - /> - ) : null} - + ) : null} + - {isExpanded ? ( - - - {toolbarPills} - - {startButton} - - ) : null} - - + {isExpanded ? ( + + + {toolbarPills} + + {startButton} + + ) : null} + + + ); }