Taptic feedback fallback to vibrate

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

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

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