react-native-actions-sheet
react-native-actions-sheet copied to clipboard
Keyboard.Dismiss not working
i want to dismiss the keyboard if it is open by clicking anywhere on the action sheet but it'a not working with TouchableWithoutFeedback, any ideas?
<ActionSheet
keyboardHandlerEnabled
safeAreaInsets={insets}
elevation={elevation}
enableGesturesInScrollView={enableGesturesInScrollView}
gestureEnabled={gestureEnabled}
overlayColor={overlayColor}
closable={closable}
containerStyle={{
display: 'flex',
zIndex: 10,
borderTopLeftRadius: 20,
borderTopRightRadius: 20,
...containerStyle
}}
useBottomSafeAreaPadding={useBottomSafeAreaPadding}
id={sheetId}>
<TouchableWithoutFeedback onPress={Keyboard.dismiss}>
<>
{!scroll && children}
{scroll && (
<ScrollView keyboardShouldPersistTaps={'handled'}>
{children}
</ScrollView>
)}
</>
</TouchableWithoutFeedback>
</ActionSheet>