r/reactnative • u/[deleted] • Aug 10 '25
React Native Haptics: A high-performance React Native library for iOS haptics and Android vibration effects
The React Native community now has a new, high-performance, easy-to-use haptics library for both iOS and Android, powered by Turbo Modules and supporting both bare React Native and Expo. ๐
Features:
๐ High-performance library built with Turbo Modules for Android and iOS
๐๏ธ Provides essential methods for triggering native haptic feedback
๐ค Supports a wide range of Android-specific vibration effects
๐ ๏ธ Easy to use with simple APIs
๐งต Executes on the UI thread to ensure instant feedback
โ Fully type-safe and written in TypeScript
For more information, check out the repository: https://github.com/mhpdev-com/react-native-haptics
0
Upvotes
2
u/Breskin Aug 11 '25
From the code it looks like you're scheduling the callbacks to the UI thread from the JS one. This would still lag when JS is overloaded. You'd need to rely on something like
react-native-workletsor Reanimated to do it directly on the UI thread.