Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
38 lines
843 B
JavaScript
38 lines
843 B
JavaScript
// Module ID: 6767
|
|
// Function ID: 6768
|
|
// Dependencies: [17]
|
|
// Exports: applyRelationProp, getTVProps
|
|
|
|
// Module 6767
|
|
import _mod17 from "module_17" /* 17 */;
|
|
|
|
const Platform = _mod17.Platform;
|
|
|
|
export const getTVProps = function getTVProps(focusable) {
|
|
if (Platform.isTV) {
|
|
let flag = focusable.focusable;
|
|
if (flag == null) {
|
|
flag = focusable.isTVSelectable;
|
|
}
|
|
if (flag == null) {
|
|
flag = true;
|
|
}
|
|
const obj2 = { isTVSelectable: flag };
|
|
let obj = obj2;
|
|
} else {
|
|
obj = {};
|
|
}
|
|
return obj;
|
|
};
|
|
export const applyRelationProp = function applyRelationProp(arg0, arg1, arg2) {
|
|
if (arg2) {
|
|
const _Array = Array;
|
|
if (Array.isArray(arg2)) {
|
|
const items = [];
|
|
HermesBuiltin.arraySpread(arg2, 0);
|
|
HermesBuiltin.apply(items, arg0);
|
|
} else {
|
|
tmp4(arg2);
|
|
}
|
|
}
|
|
};
|