Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Remove haptic touch from bottom nav bar (#771)

Leendert de Borst758597353f66
diff --git a/mobile-app/app/(tabs)/_layout.tsx b/mobile-app/app/(tabs)/_layout.tsx
index d6e28c3fb..6c5ba97ac 100644
--- a/mobile-app/app/(tabs)/_layout.tsx
+++ b/mobile-app/app/(tabs)/_layout.tsx
@@ -2,7 +2,6 @@ import { Tabs, usePathname } from 'expo-router';
import React, { useEffect } from 'react';
import { Platform } from 'react-native';
import { router } from 'expo-router';
-import { HapticTab } from '@/components/HapticTab';
import { IconSymbol } from '@/components/ui/IconSymbol';
import TabBarBackground from '@/components/ui/TabBarBackground';
import { useColors } from '@/hooks/useColorScheme';
@@ -47,7 +46,6 @@ export default function TabLayout() {
screenOptions={{
tabBarActiveTintColor: colors.tint,
headerShown: false,
- tabBarButton: HapticTab,
tabBarBackground: TabBarBackground,
tabBarStyle: Platform.select({
ios: {
diff --git a/mobile-app/components/HapticTab.tsx b/mobile-app/components/HapticTab.tsx
deleted file mode 100644
index 7f3981cb9..000000000
--- a/mobile-app/components/HapticTab.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);
- }}
- />
- );
-}