Fast, worklet-compatible haptic feedback for React Native.
- ποΈ Zero-delay haptic feedback, powered by JSI
- πͺ Compatible with Reanimated and Gesture Handler worklets
- π― 9 different haptic patterns (impact, notification, selection)
- π± iOS and Android support
- πͺΆ Lightweight, zero dependencies
yarn add react-native-turbo-haptics
cd ios && pod install
import { triggerHaptics } from 'react-native-turbo-haptics';
// In any JavaScript context:
triggerHaptics('selection');
// In worklets:
Gesture.Tap()
.onBegin(() => triggerHaptics('soft'));
// Available haptic types:
const HapticTypes = {
impactHeavy: 'impactHeavy',
impactLight: 'impactLight',
impactMedium: 'impactMedium',
notificationError: 'notificationError',
notificationSuccess: 'notificationSuccess',
notificationWarning: 'notificationWarning',
rigid: 'rigid',
selection: 'selection',
soft: 'soft',
};
MIT