import * as Haptics from "expo-haptics"; const enabled = process.env.EXPO_OS === "ios"; export const haptics = { selection() { if (enabled) void Haptics.selectionAsync(); }, light() { if (enabled) void Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light); }, medium() { if (enabled) void Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Medium); }, success() { if (enabled) void Haptics.notificationAsync(Haptics.NotificationFeedbackType.Success); }, warning() { if (enabled) void Haptics.notificationAsync(Haptics.NotificationFeedbackType.Warning); }, error() { if (enabled) void Haptics.notificationAsync(Haptics.NotificationFeedbackType.Error); }, };