61 lines
1.5 KiB
JavaScript
61 lines
1.5 KiB
JavaScript
// Metro module 5277 (f5278).
|
|
import Module19 from "react";
|
|
let deepEqual;
|
|
export function toArray(a0) {
|
|
return Array.isArray(a0) ? a0 : [a0];
|
|
}
|
|
export function withPrevAndCurrent(a0, c14781_0) {
|
|
let c14781_1 = [null];
|
|
const r4 = [...a0];
|
|
const r9 = [];
|
|
let c14781_2 = r9;
|
|
r4.forEach((item, index) => {
|
|
const r7 = c14781_0(c14781_1[index], item);
|
|
c14781_1.push(r7);
|
|
c14781_2.push(r7);
|
|
});
|
|
return r9;
|
|
}
|
|
export function hasProperty(a0, a1) {
|
|
return Object.prototype.hasOwnProperty.call(a0, a1);
|
|
}
|
|
export function isTestEnv() {
|
|
return Object.prototype.hasOwnProperty.call(global, "process") && false;
|
|
}
|
|
export function tagMessage(a0) {
|
|
return `[react-native-gesture-handler] ${a0}`;
|
|
}
|
|
export function isFabric() {
|
|
return !!global?._IS_FABRIC;
|
|
}
|
|
export function isReact19() {
|
|
return Module19.version.startsWith("19.");
|
|
}
|
|
export function isRemoteDebuggingEnabled() {
|
|
return !(global.nativeCallSyncHook && !global.__REMOTEDEV__ || global.RN$Bridgeless);
|
|
}
|
|
deepEqual = function deepEqual(config, a1) {
|
|
if (config === a1) {
|
|
return true;
|
|
}
|
|
if (typeof config === "object" && typeof a1 === "object" && config !== null && a1 !== null) {
|
|
const r8 = Object.keys(config);
|
|
const r26 = Object.keys(a1);
|
|
if (r8.length !== r26.length) {
|
|
return false;
|
|
}
|
|
for (const item of r8) {
|
|
if (r26.includes(item)) {
|
|
if (deepEqual(config[item], a1[item])) {
|
|
continue;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
return false;
|
|
};
|
|
export { deepEqual };
|
|
export const INT32_MAX = 2147483647;
|