82 lines
2.5 KiB
JavaScript
82 lines
2.5 KiB
JavaScript
// Metro module 68 (f69).
|
|
import * as _Module69 from "./Module69";
|
|
import * as _getConstants from "./getConstants";
|
|
import nullthrows from "./nullthrows";
|
|
import { getFabricUIManager } from "./Module71";
|
|
const default2 = global.RN$Bridgeless === true ? _Module69.default : _getConstants.default;
|
|
export default {
|
|
...default2,
|
|
measure: (a0, a1) => {
|
|
if (a0 % 2 === 0) {
|
|
const r21 = nullthrows(getFabricUIManager());
|
|
const r23 = r21.findShadowNodeByTag_DEPRECATED(a0);
|
|
if (r23) {
|
|
r21.measure(r23, a1);
|
|
} else {
|
|
console.warn(`measure cannot find view with tag #${a0}`);
|
|
a1();
|
|
}
|
|
} else {
|
|
default2.measure(a0, a1);
|
|
}
|
|
},
|
|
measureInWindow: (a0, a1) => {
|
|
if (a0 % 2 === 0) {
|
|
const r21 = nullthrows(getFabricUIManager());
|
|
const r23 = r21.findShadowNodeByTag_DEPRECATED(a0);
|
|
if (r23) {
|
|
r21.measureInWindow(r23, a1);
|
|
} else {
|
|
console.warn(`measure cannot find view with tag #${a0}`);
|
|
a1();
|
|
}
|
|
} else {
|
|
default2.measureInWindow(a0, a1);
|
|
}
|
|
},
|
|
measureLayout: (a0, a1, a2, a3) => {
|
|
L6: {
|
|
if (a0 % 2 === 0) {
|
|
const r26 = nullthrows(getFabricUIManager());
|
|
const r28 = r26.findShadowNodeByTag_DEPRECATED(a0);
|
|
const r30 = r26.findShadowNodeByTag_DEPRECATED(a1);
|
|
if (r28 && r30) {
|
|
r26.measureLayout(r28, r30, a2, a3);
|
|
break L6;
|
|
}
|
|
return void 0;
|
|
}
|
|
default2.measureLayout(a0, a1, a2, a3);
|
|
}
|
|
},
|
|
measureLayoutRelativeToParent: (a0, a1, a2) => {
|
|
let c12133_0 = a2;
|
|
if (a0 % 2 === 0) {
|
|
console.warn("RCTUIManager.measureLayoutRelativeToParent method is deprecated and it will not be implemented in newer versions of RN (Fabric) - T47686450");
|
|
const r26 = nullthrows(getFabricUIManager());
|
|
const r28 = r26.findShadowNodeByTag_DEPRECATED(a0);
|
|
if (r28) {
|
|
r26.measure(r28, (a0, a1, a2, a3, a4, a5) => {
|
|
c12133_0(a0, a1, a2, a3);
|
|
});
|
|
}
|
|
} else {
|
|
default2.measureLayoutRelativeToParent(a0, a1, a2);
|
|
}
|
|
},
|
|
dispatchViewManagerCommand: (a0, a1, a2) => {
|
|
if (typeof a0 !== "number") {
|
|
throw new Error("dispatchViewManagerCommand: found null reactTag");
|
|
}
|
|
if (a0 % 2 === 0) {
|
|
const r24 = nullthrows(getFabricUIManager());
|
|
const r26 = r24.findShadowNodeByTag_DEPRECATED(a0);
|
|
if (r26) {
|
|
r24.dispatchCommand(r26, `${a1}`, a2);
|
|
}
|
|
} else {
|
|
default2.dispatchViewManagerCommand(a0, a1, a2);
|
|
}
|
|
}
|
|
};
|