decord/source/5565_getTVProps.js

39 lines
857 B
JavaScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 5565
// Function ID: 5566
2026-08-08 06:10:11 +00:00
// Name: getTVProps
// Dependencies: [17]
// Exports: applyRelationProp, getTVProps
2026-08-13 07:00:46 +00:00
// Module 5565 (getTVProps)
2026-08-08 06:10:11 +00:00
import { Platform } from "get ActivityIndicator";
export const getTVProps = function getTVProps(focusable) {
if (Platform.isTV) {
let flag = focusable.focusable;
if (flag == null) {
flag = focusable.isTVSelectable;
}
if (flag == null) {
flag = true;
}
let obj = { isTVSelectable: null };
obj[0] = flag;
} else {
obj = {};
}
return obj;
};
export const applyRelationProp = function applyRelationProp(closure_0, arg1, arg2) {
if (arg2) {
const _Array = Array;
if (Array.isArray(arg2)) {
const items = [];
HermesBuiltin.arraySpread(arg2, 0);
HermesBuiltin.apply(items, closure_0);
} else {
tmp4(arg2);
}
}
};