
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
react-native-rich-vibration
Advanced tools
This React Native library provides an alternative to the standard vibrations API, integrating haptic feedback for a more immersive user experience. With customizable options for intensity, duration, and sharpness, you have greater control over how vibrations feel in your application.
⚠️ This library requires your mobile device to have a haptic engine.
Install the module using npm or yarn:
npx expo install react-native-rich-vibration
Watch the demo video below to see the React Native Rich Vibration module in action:
import * as ReactNativeRichVibration from "react-native-rich-vibration";
// Check for Haptics Support
ReactNativeRichVibration.hasHaptics()
// Vibrate with Custom Duration and Intensity (Sharpness for iOS)
// For Android: vibrate(duration: number, intensity: number)
// For iOS: vibrate(duration: number, intensity: number, sharpness?: number)
ReactNativeRichVibration.vibrate(400, 50); // For Android
ReactNativeRichVibration.vibrate(400, 50, 40); // For iOS
// Cancel Ongoing Vibration
ReactNativeRichVibration.cancelVibration();
FAQs
React Native Vibration Library with Rich Features
The npm package react-native-rich-vibration receives a total of 6 weekly downloads. As such, react-native-rich-vibration popularity was classified as not popular.
We found that react-native-rich-vibration demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.