Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 16 additions & 17 deletions apps/mobile/src/features/threads/NewTaskDraftScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -408,22 +408,21 @@ export function NewTaskDraftScreen(props: {
}
/>

<View style={{ flex: 1, paddingHorizontal: 20, paddingTop: 8 }}>
<TextInputWrapper
onPaste={(payload) => void handleNativePaste(payload)}
style={{ flex: 1 }}
>
<TextInput
multiline
value={flow.prompt}
onChangeText={flow.setPrompt}
placeholder={`Describe a coding task in ${selectedProject.title}`}
textAlignVertical="top"
className="h-full flex-1 border-0 bg-transparent text-[18px] leading-[28px]"
style={{ flex: 1 }}
/>
</TextInputWrapper>
</View>
<KeyboardAvoidingView behavior="padding" style={{ flex: 1 }}>
<View style={{ flex: 1, paddingHorizontal: 20, paddingTop: 8 }}>
<TextInputWrapper onPaste={(payload) => void handleNativePaste(payload)} style={{ flex: 1 }}>
<TextInput
multiline
value={flow.prompt}
onChangeText={flow.setPrompt}
placeholder={`Describe a coding task in ${selectedProject.title}`}
textAlignVertical="top"
className="h-full flex-1 border-0 bg-transparent text-[18px] leading-[28px]"
style={{ flex: 1 }}
/>
</TextInputWrapper>
</View>
</KeyboardAvoidingView>

<KeyboardStickyView>
<View
Expand Down