diff options
Diffstat (limited to '')
| -rw-r--r-- | src/AppView.tsx (renamed from src/View.tsx) | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/View.tsx b/src/AppView.tsx index 110e3fe..cca64f6 100644 --- a/src/View.tsx +++ b/src/AppView.tsx @@ -3,17 +3,14 @@ import Swiper from 'react-native-swiper'; import {AppList} from './screens/AppList'; import {Home} from './screens/Home'; import {useInstalledApps} from './hooks/useInstalledApps'; -import {useFavorites} from './hooks/useFavorites'; -export const View: React.FC = React.memo(() => { +export const AppView: React.FC = React.memo(() => { const {refreshApps} = useInstalledApps(); - const {refreshFavorites} = useFavorites(); const [screenIndex, setScreenIndex] = useState(0); useEffect(() => { refreshApps(); - refreshFavorites(); - }, [screenIndex, refreshApps, refreshFavorites]); + }, [screenIndex, refreshApps]); return ( <Swiper |
