remove useIsFocused hook from all screens

This commit is contained in:
ammarahm-ed
2020-10-03 12:03:15 +05:00
parent 40ca59d18d
commit c9c8b0cf56
10 changed files with 436 additions and 445 deletions

View File

@@ -50,8 +50,9 @@ const SimpleList = ({
};
useEffect(() => {
console.log(focused());
let mainData =
searchResults.type === type && focused && searchResults.results.length > 0
searchResults.type === type && focused() && searchResults.results.length > 0
? searchResults.results
: listData;