Add onSubmitEditing listener in search.js

This commit is contained in:
Nat 2022-03-31 06:13:12 -07:00
parent d0e8e0e64b
commit de94602cd2
1 changed files with 1 additions and 0 deletions

View File

@ -171,6 +171,7 @@ const SearchJsx = ({navigation}) => {
style = { styles.form.input } style = { styles.form.input }
placeholder = "Search..." placeholder = "Search..."
autoFocus autoFocus
onSubmitEditing = { _handleSearch }
onChangeText = { onChangeText = {
q => setState({ ...state, query: q }) q => setState({ ...state, query: q })
} }