1 year ago

#296939

test-img

GrgaMrga

Is there a way to develop custom haptic feedback patterns?

According to Apple's Human Interface Guidelines about haptic feedback, some apps/games call for custom haptic patterns.

How would someone go about doing a custom pattern for an app. Both react-native-haptic-feedback, and expo-haptics offer an API for pre-defined Apple's and Android's feedback patterns (Different impacts styles, and some notification patterns like success, error, etc). However, they don't offer creation of new patterns.

I am aware of the Vibration from react-native. However, it doesn't allow for fine tuning patterns using short impact styles from the two previously mentioned packages.

Is there an "out of the box" solution for creating something like this (e.g. two Light impacts, and one Heavy with 50ms pause between them)? I can't find it anywhere.

Apple describes something like this for native developers here

react-native

expo

vibration

0 Answers

Your Answer

Accepted video resources