decord/source/3877_getHostComponent.js

49 lines
1.2 KiB
JavaScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 3877
2026-07-24 07:16:23 +00:00
// Function ID: 32145
2026-07-20 16:05:17 +00:00
// Name: getHostComponent
2026-07-23 10:11:24 +00:00
// Dependencies: [27, 42]
2026-07-20 16:05:17 +00:00
// Exports: callback, getHostComponent
2026-07-23 10:11:24 +00:00
// Module 3877 (getHostComponent)
import { Platform } from "get ActivityIndicator";
2026-07-20 16:05:17 +00:00
export const getHostComponent = function getHostComponent(RiveView, arg1) {
const importAll = arg1;
2026-07-23 10:11:24 +00:00
if (null == importAll(42)) {
2026-07-20 16:05:17 +00:00
const _Error = Error;
const error = new Error("NativeComponentRegistry is not available on android!");
throw error;
} else {
2026-07-23 10:11:24 +00:00
return importAll(42).get(RiveView, () => {
const tmp = callback();
tmp.validAttributes = (function wrapValidAttributes(validAttributes) {
2026-07-20 16:05:17 +00:00
const keys = Object.keys(validAttributes);
for (const item10009 of keys) {
let tmp3 = arg0;
let obj = {
diff(arg0, arg1) {
return arg0 !== arg1;
},
process(arg0) {
return arg0;
}
};
arg0[item10009] = obj;
2026-07-23 10:11:24 +00:00
continue;
2026-07-20 16:05:17 +00:00
}
return validAttributes;
2026-07-23 10:11:24 +00:00
})(tmp.validAttributes);
2026-07-20 16:05:17 +00:00
return tmp;
});
}
};
export const callback = function callback(f) {
let tmp = f;
if ("function" === typeof f) {
const obj = { f };
tmp = obj;
}
return tmp;
};