decord/source/4101_getHostComponent.js

51 lines
1.4 KiB
JavaScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 4101
// Function ID: 4102
2026-07-29 08:29:29 +00:00
// Name: getHostComponent
// Dependencies: [17, 65]
// Exports: callback, getHostComponent
2026-08-12 06:57:52 +00:00
// Module 4101 (getHostComponent)
2026-07-29 08:29:29 +00:00
import { Platform } from "get ActivityIndicator";
export const getHostComponent = function getHostComponent(RiveView, arg1) {
const importAll = arg1;
if (null == importAll(65)) {
const _Error = Error;
const error = new Error("NativeComponentRegistry is not available on android!");
throw error;
} else {
return tmp(65).get(RiveView, () => {
const tmp = callback();
const validAttributes = tmp.validAttributes;
(function wrapValidAttributes(validAttributes) {
const keys = Object.keys(validAttributes);
for (const item10009 of keys) {
let obj = { diff: null, process: null };
obj[0] = function diff(arg0, arg1) {
return arg0 !== arg1;
};
obj[1] = function process(arg0) {
return arg0;
};
arg0[item10009] = obj;
continue;
}
return validAttributes;
})(validAttributes);
tmp.validAttributes = validAttributes;
return tmp;
});
}
tmp = importAll;
};
2026-08-04 21:03:28 +00:00
export const callback = function callback(fn) {
let tmp = fn;
if (typeof fn === "function") {
2026-07-29 08:29:29 +00:00
const obj = { f: null };
2026-08-04 21:03:28 +00:00
obj[0] = fn;
2026-07-29 08:29:29 +00:00
tmp = obj;
}
return tmp;
};