gorhom / react-native-bottom-sheet

A performant interactive bottom sheet with fully configurable options 🚀
https://ui.gorhom.dev/components/bottom-sheet
MIT License
6.68k stars 740 forks source link

[v4] | [v2] Empty space when keyboard open #1930

Open Bayramito opened 1 week ago

Bayramito commented 1 week ago

Bug

When keyboard open on Android, there is a empty space above the keyboard. No such thing on IOS side.

Ekran Resmi 2024-09-06 10 36 25

Environment info

Library Version
@gorhom/bottom-sheet 4.6.4
react-native 0.72.14
react-native-reanimated 3.14.0
react-native-gesture-handler 2.16.0

Reproducible sample code

      <BottomSheet
        ref={c => (this.sheet = c)}
        index={!shown ? -1 : 0}
        snapPoints={this.props.snapPoints || [height * (this.props.snapPoint || 0.7), "90%"]}
        handleComponent={() => null}
        backgroundStyle={{backgroundColor: backgroundColor || "transparent"}}
        style={styles().sheet}
        onClose={this.onSheetClose}
        enablePanDownToClose
        keyboardBlurBehavior="restore"
        backdropComponent={this.props.hasBackdrop && this.renderBackdrop}
        {...rest}
      >
              <BottomSheetTextInput
                value={this.search}
                onChangeText={this.onSearchChanged}
                style={styles().input}
                placeholderTextColor={colorsText.main}
                placeholder="find location"
              />

Idk am I missing a prop or something ? @gorhom

github-actions[bot] commented 1 week ago

@Bayramito: hello! :wave:

This issue is being automatically closed because it does not follow the issue template.