mkuczera / react-native-haptic-feedback

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

I'm running react-native 0.57.8...only certain notifications work #27

Closed milesmeow closed 5 years ago

milesmeow commented 5 years ago

I tested the different settings on iOS and only these work for me (iPhone6S iOS 12.1.4):

All settings work on Android

Testing with:

const a = ['selection', 'impactLight', 'impactMedium', 'impactHeavy', 'notificationSuccess', 'notificationWarning', 'notificationError']
const rnd_vibration = a[Math.floor(Math.random()*6)]
console.log('vibrate: ', rnd_vibration)
ReactNativeHapticFeedback.trigger(rnd_vibration, true)
johanolandero commented 5 years ago

iPhone 6s is using a weaker taptic engine which doesn't support all the different types. See implementation and description in #26

mkuczera commented 5 years ago

Due to the intended behaviour, i will close the issue.