Haptic (and Vibration) causing app to crash in standalone expo app

I’ve been trying to utilise the Vibration library to give user feedback on certain touches.

Vibration.vibrate(500) (with import { Vibration } from ‘react-native’)


Haptic.selection() (with import { Haptic } from ‘expo’)

both are working during development however in a standalone application (from expo build:android) the app crashes. I’ve tried adding “VIBRATION” to the android permissions but this doesn’t seem to resolve the issue.

Has anyone successfully used the Vibration API before or have any ideas?

Thanks in advance!

1 Like

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