Button can't be clicked while keyboard is visible - react native

The scrollview contains a prop keyboardShouldPersistTaps which handles the keyboard tap behaviour inside a scrollview.

For your case give it as <ScrollView keyboardShouldPersistTaps='handled'>

Here is a expo link scrollview with keyboard


As an addition to @thakur-karthik answer:

It's very important to note that in the scrollview scenario, some oddity occurs when you have a scrollview in a react-native modal.

Just adding keyboardShouldPersistTaps={'always'} on the scrollview in the modal alone will not work.

If you have scrollviews in any ancestors, they must also have keyboardShouldPersistTaps={'always'} declared on their components