Index of every page on this site: llms.txt
All skills
software-mansion-labs avatar

/pulsar-haptics

@43cde80
Run it yourself

Implement, migrate, design, review, and troubleshoot haptic feedback with Software Mansion Pulsar across React Native, iOS, Android, Kotlin Multiplatform, Flutter, and Web. Use when the user names Pulsar; a Pulsar package such as react-native-pulsar, com.swmansion:pulsar, com.swmansion:pulsar-kmp, pulsar_haptics, or pulsar-haptics; a Pulsar import, preset, composer, setting, installation, migration, or runtime problem; a Figma design carrying Pulsar haptic bindings; or explicitly requests migration to Pulsar. Do not use for generic haptics, vibration, Core Haptics, browser Vibration API, expo-haptics, animation, audio, motion, or UI-polish work without Pulsar evidence or explicit Pulsar intent.

Use this Skill: https://skilld.dev/gh/software-mansion-labs/skills/pulsar-haptics

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesexpo-haptics-to-pulsar-migration.md

≈753 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Migrating from expo-haptics to Pulsar

Use this reference only for a React Native or Expo migration from expo-haptics to react-native-pulsar. Confirm package versions and callable symbols against resolved project artifacts before changing code.

System-feedback mapping

expo-haptics Pulsar system preset Migration note
Haptics.impactAsync(ImpactFeedbackStyle.Light) Presets.System.impactLight() Direct system preset
Haptics.impactAsync(ImpactFeedbackStyle.Medium) Presets.System.impactMedium() Direct system preset
Haptics.impactAsync(ImpactFeedbackStyle.Heavy) Presets.System.impactHeavy() Direct system preset
Haptics.impactAsync(ImpactFeedbackStyle.Soft) Presets.System.impactSoft() expo-haptics Android waveform matches Light
Haptics.impactAsync(ImpactFeedbackStyle.Rigid) Presets.System.impactRigid() expo-haptics Android waveform matches Medium
Haptics.notificationAsync(NotificationFeedbackType.Success) Presets.System.notificationSuccess() Direct system preset
Haptics.notificationAsync(NotificationFeedbackType.Warning) Presets.System.notificationWarning() Direct system preset
Haptics.notificationAsync(NotificationFeedbackType.Error) Presets.System.notificationError() Direct system preset
Haptics.selectionAsync() Presets.System.selection() expo-haptics Android waveform matches Light impact

Pulsar system presets use Android system effects, respecting device haptic tuning. Do not promise identical Android waveform output: expo-haptics uses raw waveforms and collapses several styles. If exact Android effect selection matters, verify matching-version Presets.System.Android.* exports before using platform-specific presets.

Code shape

// Before
import * as Haptics from "expo-haptics";

function handleSuccess() {
  Haptics.notificationAsync(Haptics.NotificationFeedbackType.Success);
}

// After
import { Presets } from "react-native-pulsar";

function handleSuccess() {
  Presets.System.notificationSuccess();
}

Pulsar functions are synchronous and worklet-compatible in upstream guidance: do not carry await from expo-haptics. After preserving system semantics, consider a named Pulsar preset only when richer feedback fits event meaning. Verify support, setup, cleanup, and physical-device feel before reporting migration complete.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides structured guidance for integrating and migrating to the Software Mansion Pulsar haptics library across various platforms. It follows security best practices by including explicit instructions to ignore potential prompt injections in external documentation and project files.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 43cde80. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 3 months ago

README badge

README badge for software-mansion-labs/skills/pulsar-haptics