Skip to content

Commit

Permalink
fix: keyboard automatically dismissing when entering
Browse files Browse the repository at this point in the history
  • Loading branch information
hopetambala committed Jul 5, 2021
1 parent c4c4813 commit b763f2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion domains/DataCollection/Forms/IdentificationForm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const IdentificationForm = ({

return (
<View>
<TouchableWithoutFeedback onPress={Keyboard.dismiss()} accessible={false}>
<TouchableWithoutFeedback onPress={Keyboard.dismiss} accessible={false}>
<Formik
initialValues={{}}
onSubmit={async (values,) => {
Expand Down
2 changes: 1 addition & 1 deletion domains/DataCollection/Forms/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const Forms = (props) => {
)}
{consent === true && selectedForm !== 'id' && selectedForm !== '' && (
<View>
<TouchableWithoutFeedback onPress={Keyboard.dismiss()} accessible={false}>
<TouchableWithoutFeedback onPress={Keyboard.dismiss} accessible={false}>
<View>
<View style={layout.container}>
<ResidentIdSearchbar
Expand Down

0 comments on commit b763f2a

Please sign in to comment.