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

Function playHaptic

packages/shared/src/lib/nativeBridge.ts:81–83  ·  view source on GitHub ↗
(style: HapticStyle = HapticStyle.Light)

Source from the content-addressed store, hash-verified

79// Safari and WKWebView never vibrate, so haptics go through a wrapper that
80// answers for the handler; without one, nothing plays.
81export const playHaptic = (style: HapticStyle = HapticStyle.Light): void => {
82 postNativeMessage(WebKitMessageHandlers.Haptic, { style });
83};
84
85export enum StatusBarStyle {
86 Default = 'default',

Callers 5

useBookmarkPostFunction · 0.90
useHapticFunction · 0.90
useNativeBridgeFunction · 0.90
useVotePostFunction · 0.90

Calls 1

postNativeMessageFunction · 0.85

Tested by

no test coverage detected