Problem
I'm using TouchableWithoutFeedback inside of InputScrollView in order to hide keyboard when user press outside of the textinput, but Keyboard.dismiss doesn't work.
Repro
here's a reproduction code. console.warn in the onPress is called but Keyboard.dismiss doesn't work for some reason.
<InputScrollView
style={{flex:1}}
keyboardShouldPersistTaps={'always'}
>
<TouchableWithoutFeedback
onPress={() => {
console.warn('keyboard should be closed')
Keyboard.dismiss()
}}
style={{ backgroundColor: 'blue' }}
>
<TextInput
multiline
scrollEnabled={false}
style={{marginTop: 300}}
/>
</TouchableWithoutFeedback>
</InputScrollView>