From 0985afbb65fd292032ca05b3de59e877719ec740 Mon Sep 17 00:00:00 2001 From: QQ Date: Tue, 17 Nov 2026 08:33:11 +0800 Subject: [PATCH] Import apps/android/src/ui/haptics.ts --- apps/android/src/ui/haptics.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 apps/android/src/ui/haptics.ts diff --git a/apps/android/src/ui/haptics.ts b/apps/android/src/ui/haptics.ts new file mode 100644 index 0000000..9f183be --- /dev/null +++ b/apps/android/src/ui/haptics.ts @@ -0,0 +1,6 @@ +import * as Haptics from 'expo-haptics' + +/** Trigger a light tactile tap without propagating unsupported-device errors. */ +export function triggerLightHaptic(): void { + void Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light).catch(() => undefined) +}