decord/source/5565_getTVProps.js
2026-08-13 07:00:46 +00:00

38 lines
857 B
JavaScript

// Module ID: 5565
// Function ID: 5566
// Name: getTVProps
// Dependencies: [17]
// Exports: applyRelationProp, getTVProps
// Module 5565 (getTVProps)
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);
}
}
};