mkuczera / react-native-haptic-feedback

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

[IOS] react-native-haptic-feedback (2.3.3) not working on iphone 14pro #140

Closed s-mikulich closed 4 hours ago

s-mikulich commented 4 hours ago

I tried use this example in my code, but nothing happen (no vibration and sound). Could you tell me what should I check on the device or in the project? Thanks.

const onPress = () => {
      const options = {
        enableVibrateFallback: true,
        ignoreAndroidSystemSettings: false
      }

      ReactNativeHapticFeedback.trigger('impactLight', options)

      // some actions on Press
}

IOS Version 18.0.1 iPhone 14 Pro "react-native-haptic-feedback": "^2.3.3", "react-native": "0.75.4",

On the device settings: Accessibility->Touch->Vibration is ON

s-mikulich commented 4 hours ago

Sorry! I have found the problem! It isn't the problem of this library! On the device settings: Settings -> Sound & Heptics -> System Haptics -> ON