// Module ID: 4357 // Function ID: 4358 // Name: TouchableHaptic // Dependencies: [19, 17, 21, 4351, 4350] // Exports: TouchableHaptic // Module 4357 (TouchableHaptic) import get_ActivityIndicator from "get ActivityIndicator" /* 17 */; import noop from "noop" /* 19 */; import jsxProd from "jsxProd" /* 21 */; noop.useCallback; const Pressable = get_ActivityIndicator.Pressable; const jsx = jsxProd.jsx; export const TouchableHaptic = function TouchableHaptic(hapticType) { let impactMedium = hapticType.hapticType; if (impactMedium === undefined) { impactMedium = impactMedium(hapticOptions[3]).HapticFeedbackTypes.impactMedium; } let str = hapticType.hapticTrigger; if (str === undefined) { str = "onPressIn"; } hapticOptions = hapticType.hapticOptions; const onPressIn = hapticType.onPressIn; const onPress = hapticType.onPress; const onLongPress = hapticType.onLongPress; const merged = Object.assign(hapticType, Object.create(null)); closure_6 = undefined; const items = [impactMedium, hapticOptions]; const tmp4 = onPressIn(() => { str(hapticOptions[4]).trigger(impactMedium, hapticOptions); }, items); closure_6 = tmp4; const items1 = [str, tmp4, onPressIn]; const items2 = [str, tmp4, onPress]; const items3 = [str, tmp4, onLongPress]; const tmp5 = onPressIn((arg0) => { if ("onPressIn" === str) { callback(); } if (onPressIn != null) { tmp3(arg0); } }, items1); const tmp6 = onPressIn((arg0) => { if ("onPress" === str) { callback(); } if (onPress != null) { tmp3(arg0); } }, items2); const merged1 = Object.assign(merged); return onLongPress(onPress, { onPressIn: tmp5, onPress: onPressIn((arg0) => { if ("onPress" === str) { callback(); } if (onPress != null) { tmp3(arg0); } }, items2), onLongPress: onPressIn((arg0) => { if ("onLongPress" === str) { callback(); } if (onLongPress != null) { tmp3(arg0); } }, items3) }); };