From ddcb82a71965280803fd50175aade3c05dd235ff Mon Sep 17 00:00:00 2001
From: Akshay Nair <phenax5@gmail.com>
Date: Sat, 28 Sep 2024 22:43:29 +0530
Subject: Use native feedback for apps

---
 src/components/AppMenu.tsx | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

(limited to 'src/components/AppMenu.tsx')

diff --git a/src/components/AppMenu.tsx b/src/components/AppMenu.tsx
index 2319e73..4c994ab 100644
--- a/src/components/AppMenu.tsx
+++ b/src/components/AppMenu.tsx
@@ -1,10 +1,16 @@
-import {Text, View, Modal, TouchableOpacity, Pressable} from 'react-native';
+import {
+  Text,
+  View,
+  Modal,
+  TouchableOpacity,
+  Pressable,
+  TouchableNativeFeedback,
+} from 'react-native';
 import {AppDetail} from 'react-native-launcher-kit/typescript/Interfaces/InstalledApps';
 import {useFavorites} from '../hooks/useFavorites';
 import React, {useState} from 'react';
 // @ts-expect-error No declaration file
 import IntentLauncher from '@angelkrak/react-native-intent-launcher';
-import {TouchableHighlight} from 'react-native-gesture-handler';
 import {useStableCallback} from '../hooks/useStableCallback';
 
 export const AppMenu: React.FC<React.PropsWithChildren<{app: AppDetail}>> = ({
@@ -57,13 +63,9 @@ export const AppMenu: React.FC<React.PropsWithChildren<{app: AppDetail}>> = ({
 
   return (
     <>
-      <TouchableHighlight
-        activeOpacity={0.7}
-        underlayColor="#101010"
-        onPress={openApp}
-        onLongPress={openContextMenu}>
+      <TouchableNativeFeedback onPress={openApp} onLongPress={openContextMenu}>
         {children}
-      </TouchableHighlight>
+      </TouchableNativeFeedback>
 
       <Modal
         visible={isOpen}
-- 
cgit v1.3.1

