Files
kin/app/src/lib/haptics.ts
Marcus Rehbock ac0b82e6a0
Some checks failed
Build & Release APK / build (push) Failing after 13s
Kin: personal relationships app — server (cadence/due/migrations) + Expo Android app
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-09 00:50:06 -07:00

12 lines
337 B
TypeScript

import * as Haptics from "expo-haptics";
import { Platform } from "react-native";
export function tap() {
if (Platform.OS !== "web") void Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
}
export function success() {
if (Platform.OS !== "web")
void Haptics.notificationAsync(Haptics.NotificationFeedbackType.Success);
}