Files
discord-decomp/_bundle/Module1634.js
T
2026-11-01 12:12:55 +02:00

26 lines
778 B
JavaScript

// Metro module 1634 (f1635).
import { findHostInstance } from "./Module1635";
import { ReanimatedError } from "./Module1617";
export function getShadowNodeWrapperFromRef(a0, a1) {
let r3 = a1?.__internalInstanceHandle;
if (r3 == null) {
r3 = a0?.__internalInstanceHandle;
}
if (r3 == null) {
const r13 = a0 == null;
let r14 = void 0;
if (!r13) {
const getNativeScrollRef = a0.getNativeScrollRef;
r14 = getNativeScrollRef == null ? void 0 : getNativeScrollRef.call(a0)?.__internalInstanceHandle;
}
r3 = r14;
}
if (r3 == null) {
r3 = a0._reactInternals && findHostInstance(a0).__internalInstanceHandle;
}
if (r3) {
return r3.stateNode.node;
}
throw new ReanimatedError("Failed to find host instance for a ref.");
}