From dda041a9aebc23f7a0576fc4030d06c71fa370d2 Mon Sep 17 00:00:00 2001
From: Akshay Nair <phenax5@gmail.com>
Date: Sun, 12 May 2024 20:04:58 +0530
Subject: Add draggable favorite apps list

---
 App.tsx | 31 +++++++++++++++++--------------
 1 file changed, 17 insertions(+), 14 deletions(-)

(limited to 'App.tsx')

diff --git a/App.tsx b/App.tsx
index 6c2c0dc..c6b5159 100644
--- a/App.tsx
+++ b/App.tsx
@@ -4,6 +4,7 @@ import {InstalledApps} from 'react-native-launcher-kit';
 import Swiper from 'react-native-swiper';
 import {AppList} from './src/screens/AppList';
 import {Home} from './src/screens/Home';
+import {GestureHandlerRootView} from 'react-native-gesture-handler';
 
 function App(): React.JSX.Element {
   const [apps, setApps] = useState(() => InstalledApps.getSortedApps());
@@ -11,21 +12,23 @@ function App(): React.JSX.Element {
   const [screenIndex, setScreenIndex] = useState(0);
 
   return (
-    <SafeAreaView className="flex flex-1 bg-slate-100 dark:bg-black">
-      <Swiper
-        autoplay={false}
-        horizontal
-        loop={false}
-        loadMinimal
-        dot={<></>}
-        activeDot={<></>}
-        index={screenIndex}
-        onIndexChanged={setScreenIndex}>
-        <Home />
+    <GestureHandlerRootView>
+      <SafeAreaView className="flex flex-1 bg-slate-100 dark:bg-black">
+        <Swiper
+          autoplay={false}
+          horizontal
+          loop={false}
+          loadMinimal
+          dot={<></>}
+          activeDot={<></>}
+          index={screenIndex}
+          onIndexChanged={setScreenIndex}>
+          <Home apps={apps} />
 
-        <AppList apps={apps} screenIndex={screenIndex} />
-      </Swiper>
-    </SafeAreaView>
+          <AppList apps={apps} screenIndex={screenIndex} />
+        </Swiper>
+      </SafeAreaView>
+    </GestureHandlerRootView>
   );
 }
 
-- 
cgit v1.3.1

