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
12 changes: 9 additions & 3 deletions apps/mobile/app/(app)/[workspace]/(tabs)/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import {
Alert,
KeyboardAvoidingView,
Platform,
View,
} from "react-native";
import { KeyboardAvoidingView } from "react-native-keyboard-controller";
import { router } from "expo-router";
import { useFocusEffect, useIsFocused } from "@react-navigation/native";
import { useQuery, useQueryClient } from "@tanstack/react-query";
Expand Down Expand Up @@ -393,8 +392,15 @@ export default function ChatTab() {
}
/>
{availability === "none" ? <NoAgentBanner /> : null}
{/*
* Use the keyboard-controller implementation already mounted by the
* root KeyboardProvider. Unlike RN's event-driven KAV, its padding is
* derived from the native keyboard state, so a keyboard dismissal that
* occurs while the app is backgrounded cannot leave stale bottom
* padding and collapse this flex layout when the app resumes.
*/}
<KeyboardAvoidingView
behavior={Platform.OS === "ios" ? "padding" : undefined}
behavior="padding"
className="flex-1"
>
<ChatMessageList
Expand Down
Loading