Import apps/android/src/ui/haptics.ts

This commit is contained in:
QQ 2026-11-17 08:33:11 +08:00
parent 50e7935fd1
commit 0985afbb65
1 changed files with 6 additions and 0 deletions

View File

@ -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)
}