Simple by default
One function call. Works on both platforms with sensible defaults โ no configuration required.
Core Haptics, AHAP files, pattern notation, and cross-platform utilities for iOS and Android.
import HapticFeedback, {
HapticFeedbackTypes,
} from "react-native-haptic-feedback";
// Single impact
HapticFeedback.trigger("impactMedium");
// Notification
HapticFeedback.trigger(HapticFeedbackTypes.notificationSuccess);import { pattern, playHaptic } from "react-native-haptic-feedback";
// Cross-platform: AHAP on iOS, pattern fallback on Android
await playHaptic("celebration.ahap", pattern("o.o.o.O"));import { useHaptics } from 'react-native-haptic-feedback';
function MyButton() {
const haptics = useHaptics({ enableVibrateFallback: true });
return <Pressable onPressIn={() => haptics.trigger('impactLight')} />;
}npm install react-native-haptic-feedbackyarn add react-native-haptic-feedbackPre-release โ This docs site covers the
nextpre-release (3.0.0-next). For the stable v2 release see the GitHub README.