Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): keep the composer from covering the last message on thread open #4999

ClosedcarTloyal123(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/4999/headopened View on GitHub

Showing 3 changed files with 60 additions and 7 deletions.

x
0 of 3 viewed, 3 left
2 additions and 0 deletionsapps/mobile/src/features/threads/ThreadComposer.tsxModified
View file
@@ -82,6 +82,8 @@
*/
export const COMPOSER_EXPANDED_CHROME = 174;
​
+export const COMPOSER_PENDING_CARD_MIN_CHROME = 160;
+​
export interface ThreadComposerProps {
readonly draftMessage: string;
readonly draftAttachments: ReadonlyArray<DraftComposerImageAttachment>;
32 additions and 4 deletionsapps/mobile/src/features/threads/ThreadDetailScreen.tsxModified
View file
@@ -16,7 +16,12 @@
} from "@t3tools/contracts";
import * as Haptics from "expo-haptics";
import { memo, useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
-import { Platform, View, type GestureResponderEvent } from "react-native";
+import {
+ Platform,
+ View,
+ type GestureResponderEvent,
+ type LayoutChangeEvent,
+} from "react-native";
import { KeyboardController, KeyboardStickyView } from "react-native-keyboard-controller";
import Animated, { FadeInDown, FadeOut } from "react-native-reanimated";
import { useSafeAreaInsets } from "react-native-safe-area-context";
@@ -37,6 +42,7 @@
import {