Taptic feedback fallback to vibrate

#1

Hi,
Is there a way of falling back to Vibrate for iOS devices that do not support taptic feedback?
Many thanks,

0 Likes

#2

I don’t believe there is a way to elegantly handle this, but you should be able to leverage Constants.Platform.ios.model and Constants.Platform.ios.systemVersion to determine if you should use the Haptic API or RN’s Vibration API.

https://docs.expo.io/versions/v28.0.0/sdk/constants#expoconstantsplatform
https://docs.expo.io/versions/v28.0.0/sdk/haptic#ios-version-is-less-than-10-iphone

Cheers,

Adam

0 Likes

closed #3

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.

0 Likes