From fed00ef375696086c11380e0e18acc833da344ef Mon Sep 17 00:00:00 2001 From: Justin Gray Date: Sun, 31 May 2026 19:17:40 +0000 Subject: [PATCH] Fix new task draft scrolling when the keyboard is open. Wrap the prompt field in KeyboardAvoidingView so long text stays scrollable inside the form sheet while the keyboard and sticky composer controls are up. Co-authored-by: Cursor --- .../features/threads/NewTaskDraftScreen.tsx | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/apps/mobile/src/features/threads/NewTaskDraftScreen.tsx b/apps/mobile/src/features/threads/NewTaskDraftScreen.tsx index b73e874169c..5b82b90e844 100644 --- a/apps/mobile/src/features/threads/NewTaskDraftScreen.tsx +++ b/apps/mobile/src/features/threads/NewTaskDraftScreen.tsx @@ -2,7 +2,7 @@ import { useRouter } from "expo-router"; import { TextInputWrapper } from "expo-paste-input"; import { useCallback, useEffect, useMemo } from "react"; import { View } from "react-native"; -import { KeyboardStickyView, 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"; @@ -408,22 +408,21 @@ export function NewTaskDraftScreen(props: { } /> - - void handleNativePaste(payload)} - style={{ flex: 1 }} - > - - - + + + void handleNativePaste(payload)} style={{ flex: 1 }}> + + + +