decord/source/6475_getTVProps.js
2026-08-15 05:55:55 +00:00

38 lines
857 B
JavaScript

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