fix search keyword not cleared on clear search.

This commit is contained in:
ammarahm-ed
2020-03-17 10:18:10 +05:00
parent 1e48c1b53c
commit ec3110d51d
5 changed files with 19 additions and 37 deletions

View File

@@ -79,17 +79,7 @@ const SimpleList = ({
</Text>
<Text
onPress={() => {
inputRef.current?.setNativeProps({
text: '',
});
dispatch({
type: ACTIONS.SEARCH_RESULTS,
results: {
results: [],
type: null,
keyword: null,
},
});
eSendEvent(eClearSearch);
}}
style={{
fontFamily: WEIGHT.regular,