iOS 10+ haptic feedback library for React Native applications, providing tactile responses for user interactions.
react-native-haptic is a React Native library that provides iOS haptic feedback capabilities for mobile applications. It enables developers to trigger tactile responses like impacts, notifications, and selection feedback through Apple's Taptic Engine, enhancing the sensory experience of iOS apps.
React Native developers building iOS applications who want to incorporate haptic feedback following Apple's Human Interface Guidelines.
It offers a straightforward, type-safe API to access iOS-native haptic features that aren't available in React Native core, with support for all standard feedback types and optional Taptic Engine preparation for precise timing.
iOS 10 + haptic feedback for React Native applications
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports all standard iOS feedback types including impact, notification, and selection, with sub-types for fine-grained control, aligning with Apple's Human Interface Guidelines.
Uses type-safe parameters for feedback options in the generate method, reducing runtime errors and improving code reliability in JavaScript.
Includes an optional prepare() method to awaken the Taptic Engine in advance, which is useful for synchronizing haptics with sound or animations to reduce latency.
Offers a straightforward JavaScript API that follows React Native's bridging pattern, making it easy to trigger haptics from components like TouchableHighlight.
Only works on iOS and uses Apple's Taptic Engine, leaving Android unsupported, which is a significant drawback for cross-platform React Native apps.
Requires manual steps to link the library in XCode, such as adding files and linking binaries, which can be complex and error-prone compared to auto-linking in newer React Native versions.
The README is brief and lacks detailed examples, advanced usage scenarios, or troubleshooting guides, potentially slowing down development and debugging.