mkuczera / react-native-haptic-feedback

React-Native Haptic Feedback for iOS with Android similar behaviour.
MIT License
868 stars 106 forks source link

Requesting clarity on this library vs. React Native's Vibration API #57

Closed trackwell-mike closed 4 years ago

trackwell-mike commented 4 years ago

I wanted to see what the difference is in this library vs. React Native's Vibration API. Thanks!

trackwell-mike commented 4 years ago

After further research, it appears the main difference is the ability to attach the feedback to an onpress event, rather than as a callback, like Vibration. 

Let me know if there is something else I missing.

hugoh59 commented 4 years ago

Vibration and haptic feedback are 2 different things no? For me this library does not work tho, not haptic feedback is received.

mkuczera commented 4 years ago

Hi. These are indeed 2 different things. A haptic should be used for slight interaction feedback and is much less intense than the vibration.

This library is using also vibration as a fallback to mimic the behaviour for devices not able to perform haptic feedback.