[RFC] Add button haptic feedback dependency `react-native-haptic-feedback`
pvinis opened this issue · comments
Status
Adopted
New Dependency
Name: react-native-haptic-feedback
URL: https://github.com/junina-de/react-native-haptic-feedback
Focus
A React Native module that allows you to use haptic feedback, which can be added to button taps for a more ios-native feel, as well as to events for success/failure like our Motion Guidelines suggest.
It uses the taptic engine on ios, and small vibrations on android.
An example of how to use it can be found here.
Check List
- Have read over the source code, and we can maintain it
- Has had a release in the last year, or looks done and stable
Alternatives
The only real alternative seems to be Expo's Haptics
(docs, code), but we would need to add Expo's unimodules support. Not too bad, but it's a whole extra thing that I'd like to avoid for now. If in the future we could use many of Expo's unimodules, we can add it then.
👍 I've used this module and it has never been problematic