call a function show hide keyboard react native class component code example
Example: 2 taps is required to close keyboad in react native
<ScrollView contentContainerStyle={{flexGrow: 1}}
keyboardShouldPersistTaps='handled'
>
<TextInput keyboardType='numeric'/>
</ScrollView>