Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

expo-haptics

Package Overview
Dependencies
Maintainers
0
Versions
88
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 and vibration effects on Android.

  • 14.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
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

FAQs

Package last updated on 22 Oct 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc