Trigger the physical vibration motor for alerts or tactile button feedback.
Provide physical tactile feedback on button taps, form validations, and user actions. Haptic feedback improves perceived responsiveness and user experience in native apps.
Trigger a system-standard haptic tap. Supported intensity levels: 'light', 'medium', 'heavy'.
import nativine from 'nativine';
nativine.haptics.feedback('medium');
Trigger a custom vibration for a specified duration in milliseconds:
import nativine from 'nativine';
// Vibrate for 200ms
nativine.haptics.vibrate(200);