From bac973fb3d933c383cc69612c7ffc45ece837dde Mon Sep 17 00:00:00 2001
From: Akshay Nair <phenax5@gmail.com>
Date: Sun, 29 Sep 2024 13:19:11 +0530
Subject: Switch to jotai atom with storage + suspense for favorites list

---
 src/View.tsx | 30 ------------------------------
 1 file changed, 30 deletions(-)
 delete mode 100644 src/View.tsx

(limited to 'src/View.tsx')

diff --git a/src/View.tsx b/src/View.tsx
deleted file mode 100644
index 110e3fe..0000000
--- a/src/View.tsx
+++ /dev/null
@@ -1,30 +0,0 @@
-import React, {useEffect, useState} from 'react';
-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(() => {
-  const {refreshApps} = useInstalledApps();
-  const {refreshFavorites} = useFavorites();
-  const [screenIndex, setScreenIndex] = useState(0);
-
-  useEffect(() => {
-    refreshApps();
-    refreshFavorites();
-  }, [screenIndex, refreshApps, refreshFavorites]);
-
-  return (
-    <Swiper
-      horizontal
-      autoplay={false}
-      loop={false}
-      dot={<></>}
-      activeDot={<></>}
-      onIndexChanged={setScreenIndex}>
-      <Home active={screenIndex === 0} />
-      <AppList active={screenIndex === 1} />
-    </Swiper>
-  );
-});
-- 
cgit v1.3.1

