You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I try to use dismiss functionality from lib and sometimes it works, I would say with a delay, basically if you call dismiss while keyboard animation is in progress (I think that because if I wait a little bit it works as expected) it ignores the dismiss but on the other hand dismiss from React Native closes keyboard right away.
Code snippet
import{useRef}from"react";import{BottomSheetBackdrop,BottomSheetModal,BottomSheetView}from"@gorhom/bottom-sheet";import{TextInput,Keyboard,View,Button,Text,StyleSheet}from"react-native";import{KeyboardController}from"react-native-keyboard-controller";exportconstTestComponent=()=>{constinputRef=useRef<TextInput>(null);constref=useRef<BottomSheetModal>(null);constopenSheetWithRNDismiss=()=>{Keyboard.dismiss();ref.current?.present();};constopenSheetWithRNKCDismiss=()=>{KeyboardController.dismiss();ref.current?.present();};constonDismiss=()=>{inputRef.current?.focus();};return(<Viewstyle={styles.screenContainer}><Buttontitle="dismiss with rn"onPress={openSheetWithRNDismiss}/><TextInputplaceholder="text input"ref={inputRef}/><Buttontitle="dismiss with rnkc"onPress={openSheetWithRNKCDismiss}/><BottomSheetModalbackdropComponent={BottomSheetBackdrop}ref={ref}snapPoints={["45%","85%"]}index={1}onDismiss={onDismiss}><BottomSheetView><Text>This is content</Text></BottomSheetView></BottomSheetModal></View>);};conststyles=StyleSheet.create({screenContainer: {flex: 1,flexDirection: "column",},});
To Reproduce
Steps to reproduce the behavior:
Focus text input
Press on "dismiss with rnkc" button
Press on the backdrop to close the bottom sheet, and when the keyboard starts to show up, press the button again.
See error
Expected behavior
Dismiss action should close the keyboard at any moment.
Describe the bug
I try to use dismiss functionality from lib and sometimes it works, I would say with a delay, basically if you call dismiss while keyboard animation is in progress (I think that because if I wait a little bit it works as expected) it ignores the dismiss but on the other hand dismiss from React Native closes keyboard right away.
Code snippet
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Dismiss action should close the keyboard at any moment.
Screenshots
Simulator.Screen.Recording.-.iPhone.17.Pro.-.2026-03-26.at.14.22.14.mp4
Smartphone (please complete the following information):