decord/source/utils/native/StyleSheetUtils.tsx

31 lines
782 B
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 4661
2026-07-24 07:16:23 +00:00
// Function ID: 40377
2026-07-20 16:05:17 +00:00
// Name: getStyleProp
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
// Module 4661 (getStyleProp)
2026-07-20 16:05:17 +00:00
function getStyleProp(style, borderRadius) {
if (null != borderRadius) {
if ("" !== borderRadius) {
const _Array = Array;
if (Array.isArray(style)) {
let diff = style.length - 1;
if (diff >= 0) {
const tmp4 = getStyleProp(style[diff], borderRadius);
while (null == tmp4) {
diff = diff - 1;
}
return tmp4;
}
} else if (null != style) {
if ("object" === typeof style) {
return style[borderRadius];
}
}
}
}
}
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("utils/native/StyleSheetUtils.tsx");
2026-07-20 16:05:17 +00:00
export default { getStyleProp };