Haptic Feedback

2 Min. reading time App-Oberfläche

Haptic feedback is the tactile response from your smartphone—for example, through vibration or a slight jolt—when you press a button, move an element, or complete an action. These subtle impulses make the user experience more intuitive, more emotional, and noticeably “more real”—like a slight “click” sensation when tapping a digital button.

🔧 Technical Explanation

In Expo-compatible React Native apps, haptic feedback is controlled via the expo-haptics module. It enables the integration of standardized vibration patterns that feel native and device-specific.

Supported types of haptic feedback:

  1. Impact Feedback
    • Simulates, for example, a “click,” “jolt,” or “button press”
    • Haptics.impactAsync() with types: .Light, .Medium, .Heavy
  2. Notification Feedback
    • Feedback for success, errors, or warnings
    • Haptics.notificationAsync() with types: .Success, .Warning, .Error
  3. Selection Feedback
    • Subtle feedback when selecting or scrolling
    • Haptics.selectionAsync()—ideal, for example, for pickers or sliders

Features:

  • Cross-platform (iOS & Android)
  • Works on real devices (not in simulators)
  • Varies in intensity depending on the device
  • Can be combined with UI components for buttons, swipes, gestures, etc.

💡 Use Cases

  • Confirm button presses (e.g., Send, Delete, Save)
  • Make swipe gestures or drag-and-drop actions tactile
  • Indicate successful actions both visually AND through touch
  • Emphasize error messages (error haptics)
  • Enhance game feedback, quiz answers, or meditation timers
  • Add emotional impact to UI elements (e.g., Like button)

Important Questions and Answers About Haptic Feedback

Does haptic feedback work on all devices? No—it depends on the model and operating system. Newer devices (e.g., iPhones, modern Android devices) support it. On older devices, the feature is simply ignored (without an error). Can you control the intensity of the feedback? To some extent—expo-haptics, for example, allows for light, medium, or strong impacts, but the actual effect depends on the device. Is haptic feedback accessible? Yes—it supports users with visual impairments. When combined with visual and auditory cues, it can significantly improve usability. How often should it be used? Sparingly! Haptic feedback is only effective when used sparingly. It’s ideal for key moments (e.g., confirmation, failure, selection). Can you test it? Yes—but only on real devices. Haptic feedback is not triggered in simulators or Expo Go on the web.