Socket
Book a DemoInstallSign in
Socket

expo-haptics

Package Overview
Dependencies
Maintainers
27
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-haptics

Provides access to the system's haptics engine on iOS, vibration effects on Android, and Web Vibration API on web.

14.1.4
latest
Source
npmnpm
Version published
Weekly downloads
557K
-1.78%
Maintainers
27
Weekly downloads
 
Created

What is expo-haptics?

The expo-haptics package provides a way to trigger haptic feedback on iOS and Android devices. This can be used to enhance user experience by providing tactile feedback in response to user interactions.

What are expo-haptics's main functionalities?

Impact Feedback

This feature allows you to trigger an impact feedback, which is a physical tap or bump. The `impactAsync` function can take different styles such as Light, Medium, and Heavy.

import * as Haptics from 'expo-haptics';

Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Medium);

Notification Feedback

This feature allows you to trigger notification feedback, which is a series of taps that indicate a notification. The `notificationAsync` function can take different types such as Success, Warning, and Error.

import * as Haptics from 'expo-haptics';

Haptics.notificationAsync(Haptics.NotificationFeedbackType.Success);

Selection Feedback

This feature allows you to trigger selection feedback, which is a light tap used to indicate a selection change. The `selectionAsync` function does not take any parameters.

import * as Haptics from 'expo-haptics';

Haptics.selectionAsync();

Other packages similar to expo-haptics

Keywords

react-native

FAQs

Package last updated on 30 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.