Import apps/android/src/ui/haptics.ts
This commit is contained in:
parent
50e7935fd1
commit
0985afbb65
|
|
@ -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)
|
||||
}
|
||||
Loading…
Reference in New Issue