diff options
| author | Akshay Nair <phenax5@gmail.com> | 2024-09-28 22:43:29 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2024-09-29 16:16:39 +0530 |
| commit | ddcb82a71965280803fd50175aade3c05dd235ff (patch) | |
| tree | e6fec80bc0fffe3c985fb18e60a6ce33b38742a6 /src | |
| parent | af2b5a7e618b74319e262cef8e25c1aad83c106b (diff) | |
| download | daft-launcher-ddcb82a71965280803fd50175aade3c05dd235ff.tar.gz daft-launcher-ddcb82a71965280803fd50175aade3c05dd235ff.zip | |
Use native feedback for apps
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/AppMenu.tsx | 18 |
1 files changed, 10 insertions, 8 deletions
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} |
