Hi,
I’m attempting to use the Haptic
module in my application, which seems to work fine on iOS, however I’m getting a crash on Android of The method or property Haptic.selection is not available on this platform, are you sure you've linked all the native dependencies properly?
This would seem to make a bit of sense as the Android platform obviously doesn’t have the haptic engine, however the docs for the module state that “If this is used in Android, the device will use ReactNative.Vibrate
instead”, which would seem to suggest that I don’t need to do any additional checks on my end for the platform. Are the docs misleading and I should be checking for the platform before attempting to use haptic (and, if so, should I be checking for the other constraints on the docs, like iOS < 10)?
I have seen this issue, however it seems to deal specifically with Haptic.notification
, while I’m attempting to use Haptic.selection
.
I’m on a managed application on SDK v32.
Thanks!