summaryrefslogtreecommitdiffstats
path: root/components/haptic-tab.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'components/haptic-tab.tsx')
-rw-r--r--components/haptic-tab.tsx18
1 files changed, 0 insertions, 18 deletions
diff --git a/components/haptic-tab.tsx b/components/haptic-tab.tsx
deleted file mode 100644
index 7f3981c..0000000
--- a/components/haptic-tab.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-import { BottomTabBarButtonProps } from '@react-navigation/bottom-tabs';
-import { PlatformPressable } from '@react-navigation/elements';
-import * as Haptics from 'expo-haptics';
-
-export function HapticTab(props: BottomTabBarButtonProps) {
- return (
- <PlatformPressable
- {...props}
- onPressIn={(ev) => {
- if (process.env.EXPO_OS === 'ios') {
- // Add a soft haptic feedback when pressing down on the tabs.
- Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
- }
- props.onPressIn?.(ev);
- }}
- />
- );
-}