mkuczera / react-native-haptic-feedback

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

app crashes if v.hasVibrate() == false #72

Closed Willham12 closed 1 year ago

Willham12 commented 3 years ago
Caused by java.lang.NoSuchMethodError
No static method createPredefined(I)Landroid/os/VibrationEffect; in class Landroid/os/VibrationEffect;
or its super classes (declaration of 'android.os.VibrationEffect' appears in /system/framework/framework.jar)
com.mkuczera.VibrateWithCreatePredefined.apply (VibrateWithCreatePredefined.java:20)
Willham12 commented 2 years ago

Can close if https://github.com/junina-de/react-native-haptic-feedback/pull/79 merged

mkuczera commented 1 year ago

Fixed in 2.1.0, currently in beta to test it.