70 lines
4.0 KiB
React
70 lines
4.0 KiB
React
/* Metro module 4091; source: unknown; dependencies: [29, 31, 27, 33, 4085, 4084] */
|
|
import ObjectWithoutProperties from './module-00029-ObjectWithoutProperties.js'; /* Metro dependency 29 */
|
|
import * as ReactNativeModule from './module-00027-ReactNative.js'; /* Metro dependency 27 */
|
|
import * as ReactModule from './module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from './module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
|
|
function _fun33514(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#33514, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4249:6, offset: 0x010314f3, size: 166 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const env0_3 = ['hapticType', 'hapticTrigger', 'hapticOptions', 'onPressIn', 'onPress', 'onLongPress'];
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.TouchableHaptic = TouchableHaptic;
|
|
function TouchableHaptic(a0) { // fn#33515, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4249:272, offset: 0x01031599, size: 302 bytes, params: 2, frame: 21
|
|
const hapticType = a0.hapticType;
|
|
const r11 = hapticType !== undefined ? hapticType : (require(4085) /* metro dependency 4085 */).HapticFeedbackTypes.impactMedium;
|
|
const hapticTrigger = a0.hapticTrigger;
|
|
const r10 = hapticTrigger === undefined ? 'onPressIn' : hapticTrigger;
|
|
const hapticOptions = a0.hapticOptions;
|
|
const onPressIn = a0.onPressIn;
|
|
const onPressIn2 = onPressIn;
|
|
const onPress = a0.onPress;
|
|
const onPress2 = onPress;
|
|
const onLongPress = a0.onLongPress;
|
|
const value2 = onPress2(a0, onPressIn2);
|
|
const value3 = useCallback(_fun33516, [r11, hapticOptions]);
|
|
const value4 = useCallback(_fun33517, [r10, value3, onPressIn]);
|
|
const value5 = useCallback(_fun33518, [r10, value3, onPress]);
|
|
const value6 = useCallback(_fun33519, [r10, value3, onLongPress]);
|
|
const Object = global.Object;
|
|
return <Pressable {...Object.assign({onPressIn: value4, onPress: value5, onLongPress: value6}, value2)} />;
|
|
function _fun33516() { // fn#33516, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4249:494, offset: 0x010316c7, size: 50 bytes, params: 1, frame: 14
|
|
let value = environment.__proto__;
|
|
value = importDefault(4084) /* metro dependency 4084 */;
|
|
value.trigger(env0_0, hapticOptions);
|
|
}
|
|
|
|
function _fun33517(a0) { // fn#33517, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4249:540, offset: 0x010316f9, size: 53 bytes, params: 2, frame: 11
|
|
if (env0_1 === 'onPressIn') {
|
|
(0, ReactNativeModule.Pressable)();
|
|
}
|
|
if (onPressIn != null) {
|
|
onPressIn(a0);
|
|
}
|
|
}
|
|
|
|
function _fun33518(a0) { // fn#33518, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4249:603, offset: 0x0103172e, size: 53 bytes, params: 2, frame: 11
|
|
if (env0_1 === 'onPress') {
|
|
(0, ReactNativeModule.Pressable)();
|
|
}
|
|
if (onPress != null) {
|
|
onPress(a0);
|
|
}
|
|
}
|
|
|
|
function _fun33519(a0) { // fn#33519, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4249:664, offset: 0x01031763, size: 53 bytes, params: 2, frame: 11
|
|
if (env0_1 === 'onLongPress') {
|
|
(0, ReactNativeModule.Pressable)();
|
|
}
|
|
if (onLongPress != null) {
|
|
onLongPress(a0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun33514, 4091, [29, 31, 27, 33, 4085,
|
|
4084]) /* metro module 4091, dependencies: [29, 31, 27, 33, 4085, 4084] */;
|