this native module helps you achieve the notification and the impact haptics(vibration) feedbacks with the latest types and styles.
npm install react-native-ios-haptics
import { notificationFeedback, impactFeedback } from 'react-native-ios-haptics';
// ...
notificationFeedback('success');
impactFeedback('soft');
Impact | Notifications |
---|---|
soft | success |
light | warning |
medium | error |
rigid | |
heavy |
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT