32 lines
802 B
TypeScript
32 lines
802 B
TypeScript
// Module ID: 5078
|
|
// Function ID: 5079
|
|
// Name: getStyleProp
|
|
// Dependencies: [2]
|
|
|
|
// Module 5078 (getStyleProp)
|
|
import set from "set" /* 2 */;
|
|
|
|
function getStyleProp(style, borderRadius) {
|
|
if (null != borderRadius) {
|
|
if ("" !== borderRadius) {
|
|
const _Array = Array;
|
|
if (Array.isArray(style)) {
|
|
let diff = style.length - 1;
|
|
if (0 <= diff) {
|
|
const tmp5 = getStyleProp(style[diff], borderRadius);
|
|
while (null == tmp5) {
|
|
diff = diff - 1;
|
|
}
|
|
return tmp5;
|
|
}
|
|
} else if (null != style) {
|
|
if (typeof style === "object") {
|
|
return style[borderRadius];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
const result = set.fileFinishedImporting("utils/native/StyleSheetUtils.tsx");
|
|
|
|
export default { getStyleProp };
|