mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 15:33:26 +00:00
feat: haptic feedback
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { useRef } from "react";
|
||||
import { Platform, View } from "react-native";
|
||||
import * as Haptics from "expo-haptics";
|
||||
import { Tabs } from "expo-router";
|
||||
|
||||
import Colors from "@movie-web/tailwind-config/colors";
|
||||
@@ -21,6 +22,9 @@ export default function TabLayout() {
|
||||
}}
|
||||
screenListeners={({ route }) => ({
|
||||
tabPress: () => {
|
||||
void Haptics.notificationAsync(
|
||||
Haptics.NotificationFeedbackType.Success,
|
||||
);
|
||||
switch (route.name) {
|
||||
case "search":
|
||||
focusSearchInputRef.current();
|
||||
|
Reference in New Issue
Block a user