mkuczera / react-native-haptic-feedback

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

'impactLight' no effect on iPhones 6S #47

Closed wmonecke closed 2 months ago

wmonecke commented 4 years ago

Hi!

I tested the package and only 'selection' and 'impactMedium' have any effect whatsoever. Is this because the phone does not support lighter vibrations?

Thank you very much in advance!

plaa commented 4 years ago

The code has condition that on iPhone 6 & 6S it uses AudioServicesPlaySystemSound and handles only the values selection, impactMedium and notificationWarning.

The code should be changed to perform a best-guess mapping from the other constants to the three vibration types allowed on those devices.

mkuczera commented 4 years ago

Thanks. I will implement the mapping with the next version and document the corresponding fallbacks

WesleyAC commented 3 years ago

It looks like the default fallback for unsupported types on more recent iPhone versions is selection, is the plan for the 6s / 6s Plus to also fall back to selection as well? That would be quite nice :)

haleyngonadi commented 3 years ago

Just confirming this issue on my end as well. Any updates? :)

Romick2005 commented 2 years ago

I guess we need to have some default feedback for iPhone 6s and iPhone 6s Plus image