From 22b8bbfa78e48b9ddebcfe3458d7913d5167b727 Mon Sep 17 00:00:00 2001 From: Mo Bitar Date: Sun, 19 Aug 2018 11:47:24 -0500 Subject: [PATCH] Dismiss keyboard on search submit --- src/containers/NoteList.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/containers/NoteList.js b/src/containers/NoteList.js index abfc61ec..ce9745eb 100644 --- a/src/containers/NoteList.js +++ b/src/containers/NoteList.js @@ -39,6 +39,7 @@ export default class NoteList extends Component { onChangeText={this.props.onSearchChange} onCancel={this.props.onSearchCancel} onDelete={this.props.onSearchCancel} + blurOnSubmit={true} backgroundColor={GlobalStyles.constants().mainBackgroundColor} titleCancelColor={GlobalStyles.constants().mainTintColor} keyboardDismissMode={'interactive'} @@ -96,7 +97,7 @@ export default class NoteList extends Component { maxToRenderPerBatch={6} keyboardDismissMode={'interactive'} keyboardShouldPersistTaps={'always'} - refreshControl={!this.props.hasRefreshControl ? null : + refreshControl={!this.props.hasRefreshControl ? null :