Skip to content

Commit

Permalink
Revert "[C-5204] Fix android comment input clipping (#11386)" (#11513)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers authored Mar 5, 2025
1 parent ae7c5c6 commit b2cf065
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions packages/mobile/src/components/comments/CommentDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
import type { ParamListBase } from '@react-navigation/native'
import type { NativeStackNavigationProp } from '@react-navigation/native-stack'
import type { TouchableOpacityProps } from 'react-native'
import { Platform, TouchableOpacity } from 'react-native'
import { TouchableOpacity } from 'react-native'
import { Gesture, GestureDetector } from 'react-native-gesture-handler'
import { useSafeAreaInsets } from 'react-native-safe-area-context'
import { useSelector } from 'react-redux'
Expand Down Expand Up @@ -274,16 +274,14 @@ export const CommentDrawer = (props: CommentDrawerProps) => {
</BottomSheetFooter>
</GestureDetector>
),
// intentionally excluding insets.bottom because it causes a rerender
// when the keyboard is opened on android, causing the keyboard to close
// eslint-disable-next-line react-hooks/exhaustive-deps
[
gesture,
insets.bottom,
entityId,
replyingAndEditingState,
uid,
actions,
onAutoCompleteChange,
setAutocompleteHandler,
autoFocusInput
replyingAndEditingState
]
)

Expand Down Expand Up @@ -315,9 +313,7 @@ export const CommentDrawer = (props: CommentDrawerProps) => {
)}
footerComponent={renderFooterComponent}
onDismiss={handleCloseDrawer}
android_keyboardInputMode='adjustPan'
keyboardBehavior={Platform.OS === 'android' ? 'extend' : 'fillParent'}
keyboardBlurBehavior='restore'
android_keyboardInputMode='adjustResize'
>
<CommentSectionProvider
entityId={entityId}
Expand Down

0 comments on commit b2cf065

Please sign in to comment.