MCPcopy Create free account
hub / github.com/dailydotdev/apps / useHaptic

Function useHaptic

packages/shared/src/hooks/useHaptic.ts:4–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import { HapticStyle, playHaptic } from '../lib/nativeBridge';
3
4export const useHaptic = (): ((style?: HapticStyle) => void) =>
5 useCallback(
6 (style: HapticStyle = HapticStyle.Light) => playHaptic(style),
7 [],
8 );

Callers 1

ShellClusterFunction · 0.90

Calls 1

playHapticFunction · 0.90

Tested by

no test coverage detected