react-native-haptic-feedback
Version:
Basic haptic feedback for iOS and android
20 lines • 970 B
TypeScript
/**
* Web platform implementation of react-native-haptic-feedback.
* Uses the Web Vibration API (navigator.vibrate) where supported.
* Silently no-ops on browsers that don't support vibration.
*/
import { HapticFeedbackTypes } from "./types";
import type { HapticOptions, HapticEvent, SystemHapticStatus } from "./types";
declare const RNHapticFeedback: {
setEnabled(value: boolean): void;
isEnabled(): boolean;
trigger(type?: keyof typeof HapticFeedbackTypes | HapticFeedbackTypes, _options?: HapticOptions): void;
stop(): void;
isSupported(): boolean;
triggerPattern(events: HapticEvent[], _options?: HapticOptions): void;
impact(type?: keyof typeof HapticFeedbackTypes | HapticFeedbackTypes, intensity?: number, _options?: HapticOptions): void;
playAHAP(_fileName: string): Promise<void>;
getSystemHapticStatus(): Promise<SystemHapticStatus>;
};
export default RNHapticFeedback;
//# sourceMappingURL=hapticFeedback.web.d.ts.map