Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v4] | [v2] keyboard disappears after pressing input #1841

Open
arpkirill opened this issue May 23, 2024 · 4 comments
Open

[v4] | [v2] keyboard disappears after pressing input #1841

arpkirill opened this issue May 23, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@arpkirill
Copy link

Bug

When you try to open the keyboard by pressing input, the keyboard appears for a couple of seconds and then disappears, this only happens on some phones. I couldn't understand the pattern.

SAMSUNG SM-A105F
SAMSUNG SM-A750FN

Environment info

Library Version
@gorhom/bottom-sheet 4.6.3
react-native 0.71.8
react-native-reanimated 3.11.0
react-native-gesture-handler ^2.16.2

Steps To Reproduce

  1. Open the modal
  2. Click on input
  3. See the keyboard for a couple of seconds and then it disappears

Describe what you expected to happen:

  1. Open the keyboard and don’t close it until you want to

Reproducible sample code

IMG_1775.MP4
    <View style={st.container}>
      <BottomSheet
        index={0}
        onClose={handleClose}
        topInset={containerStyle.paddingTop}
        backgroundStyle={st.sheetBackground}
        handleIndicatorStyle={st.indicator}
        keyboardBehavior="extend"
        keyboardBlurBehavior="none"
        android_keyboardInputMode="adjustResize"
        enableDynamicSizing={true}
        enablePanDownToClose={true}>
        <BottomSheetView style={st.content}>
          <FormikProvider value={formik}>
            <Text style={st.title}>Введите сумму вывода</Text>
            <Text style={st.text}>
              {'Ближайший вывод будет произведен \nв ближайшее время'}
            </Text>
            <TextField
              name={'amount'}
              InputComponent={BottomSheetTextInput}
              containerStyle={st.inputContainer}
              placeholder={'0'}
              keyboardType={'numeric'}
              addAfter={<Text></Text>}
            />
            <Button
              containerStyle={st.button}
              text={'Вывести'}
              onPress={formik.handleSubmit}
            />
          </FormikProvider>
        </BottomSheetView>
      </BottomSheet>
    </View>
@arpkirill arpkirill added the bug Something isn't working label May 23, 2024
@arpkirill arpkirill changed the title [v4] | [v2] Issue title [v4] | [v2] keyboard disappears after pressing input May 23, 2024
@arpkirill
Copy link
Author

Perhaps this is due to the height of the keyboard, if it is too high, then the keyboard collapses

@LizMyers
Copy link

I have the very same problem

@arpkirill
Copy link
Author

arpkirill commented Jun 1, 2024

I have the very same problem

I found a temporary solution, but it makes the interface a bit crooked.

        keyboardBehavior={Platform.OS === 'ios' ? 'interactive' : 'fillParent'}

@PankajRanaAdglobal
Copy link

PankajRanaAdglobal commented Jun 6, 2024

Facing same Keyboard issue in Android device only. Any Update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants