
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
expo-haptics
Advanced tools
Provides access to the system's haptics engine on iOS, vibration effects on Android, and Web Vibration API on web.
Provides access to the system's haptics engine on iOS, vibration effects on Android, and Web Vibration API on web.
For managed Expo projects, please follow the installation instructions in the API documentation for the latest stable release.
For bare React Native projects, you must ensure that you have installed and configured the expo package before continuing.
npx expo install expo-haptics
No additional set up necessary.
Run npx pod-install after installing the npm package.
This module requires permission to control vibration on the device, it's added automatically.
<!-- Added permissions -->
<uses-permission android:name="android.permission.VIBRATE" />
Contributions are very welcome! Please refer to guidelines described in the contributing guide.
The react-native-haptic-feedback package provides similar functionalities for triggering haptic feedback on iOS and Android devices. It offers more customization options for feedback patterns and intensities compared to expo-haptics.
The react-native-vibration package allows you to trigger vibration patterns on Android and iOS devices. While it does not offer the same level of haptic feedback customization as expo-haptics, it is useful for simpler vibration needs.
FAQs
Provides access to the system's haptics engine on iOS, vibration effects on Android, and Web Vibration API on web.
The npm package expo-haptics receives a total of 937,873 weekly downloads. As such, expo-haptics popularity was classified as popular.
We found that expo-haptics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 9 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.