mkuczera / react-native-haptic-feedback

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

check if hasVibrator #79

Closed pinpong closed 2 years ago

pinpong commented 2 years ago

prevent crashes on devices without vibrate support

Willham12 commented 2 years ago

see https://github.com/junina-de/react-native-haptic-feedback/issues/72

pinpong commented 2 years ago

@mkuczera

https://developer.android.com/reference/android/os/VibrationEffect#createPredefined(int)

Android Q is not Android O

Please revert your changes in the PR

mkuczera commented 2 years ago

Hi, sorry, just wanted to comment and was distracted. I will adjust today some places to match the methods to the corresponding vibrate actions on android with a proper fallback down to api level 26. @pinpong

bradzickafoose commented 1 year ago

Heh heh.