From a1143f3696a0b272018f7eea43ee23a674c618e1 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 28 Sep 2024 13:46:22 +0530 Subject: Add context menu for apps (fav,settings,uninstall) --- App.tsx | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) (limited to 'App.tsx') diff --git a/App.tsx b/App.tsx index 2294656..1852a04 100644 --- a/App.tsx +++ b/App.tsx @@ -1,34 +1,13 @@ -import React, {useState} from 'react'; +import React from 'react'; import {SafeAreaView} from 'react-native'; -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'; +import {View} from './src/View'; const App: React.FC = () => { - const [apps, _setApps] = useState(() => InstalledApps.getSortedApps()); - const [screenIndex, setScreenIndex] = useState(0); - - // const refreshApps = () => setApps(InstalledApps.getSortedApps()); - - // useEffect(() => { - // refreshApps(); - // }, [screenIndex]); - return ( - - } - activeDot={<>} - onIndexChanged={setScreenIndex}> - - - + + ); -- cgit v1.3.1