From 577e89145f3d63789aa8689264468355c9cfeaac Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 20 Dec 2024 21:55:27 +0000 Subject: [PATCH] disable avoiding view when e2e --- src/view/com/composer/Composer.tsx | 12 ++++++++++-- src/view/shell/Composer.tsx | 17 ++++------------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx index c9e40530e5..4ac097591b 100644 --- a/src/view/com/composer/Composer.tsx +++ b/src/view/com/composer/Composer.tsx @@ -13,6 +13,7 @@ import { Keyboard, KeyboardAvoidingView, LayoutChangeEvent, + Platform, ScrollView, StyleProp, StyleSheet, @@ -263,8 +264,7 @@ export const ComposePost = ({ const viewStyles = useMemo( () => ({ paddingTop: isAndroid ? insets.top : 0, - paddingBottom: - isAndroid || (isIOS && !isKeyboardVisible) ? insets.bottom : 0, + paddingBottom: isNative && !isKeyboardVisible ? insets.bottom : 0, }), [insets, isKeyboardVisible], ) @@ -610,6 +610,14 @@ export const ComposePost = ({ testID="composePostView" behavior={isIOS ? 'padding' : 'height'} keyboardVerticalOffset={keyboardVerticalOffset} + // disable when android edge-to-edge + enabled={ + !( + Platform.OS === 'android' && + Platform.Version >= 35 && + !isKeyboardVisible + ) + } style={a.flex_1}> { @@ -43,7 +43,7 @@ export function Composer({winHeight}: {winHeight: number}) { return ( ) } - -const styles = StyleSheet.create({ - wrapper: { - position: 'absolute', - top: 0, - bottom: 0, - width: '100%', - }, -})