Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 409 Bytes

generateHaptic.md

File metadata and controls

15 lines (9 loc) · 409 Bytes

generateHaptic

Generates haptic hardware feedback. Argument defaults to impact;

Arguments

type HapticFeedbackType = 'impact' | 'notification' | 'selection' | 'impactLight' | 'impactMedium' | 'impactHeavy' | 'notificationError' | 'notificationSuccess' | 'notificationWarning';

Usage

import { generateHaptic } from '@platformbuilders/helpers/native';

generateHaptic('selection');