Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
43 lines
1.5 KiB
TypeScript
43 lines
1.5 KiB
TypeScript
// Module ID: 8317
|
|
// Function ID: 8318
|
|
// Name: Banner
|
|
// Dependencies: [19, 17, 1074, 21, 4605, 1091, 5637, 2]
|
|
// Exports: default
|
|
|
|
// Module 8317 (Banner)
|
|
import utils_ColorUtils from "utils/ColorUtils" /* 1091 */;
|
|
import FastImageDefault from "FastImage" /* 5637 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
const View = fn(17).View;
|
|
const BANNER_HEIGHT = fn(1074).BANNER_HEIGHT;
|
|
const jsx = fn(21).jsx;
|
|
const createStyles = fn(4605);
|
|
let closure_6 = createStyles.createStyles({ root: { width: "100%" }, image: { width: "100%", height: "100%" } });
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/profile_customization/native/Banner.tsx");
|
|
|
|
export default function ProfileBanner(bannerHeight) {
|
|
({ bannerSource, bannerSafeArea } = bannerHeight);
|
|
({ style, backgroundColor } = bannerHeight);
|
|
if (bannerSafeArea === undefined) {
|
|
bannerSafeArea = 0;
|
|
}
|
|
bannerHeight = bannerHeight.bannerHeight;
|
|
if (bannerHeight === undefined) {
|
|
bannerHeight = BANNER_HEIGHT;
|
|
}
|
|
const tmp = closure_6();
|
|
const obj = { backgroundColor: utils_ColorUtils.int2hex(backgroundColor), height: bannerHeight + bannerSafeArea };
|
|
const obj3 = { style: null, children: null };
|
|
const items = [tmp.root, obj, style];
|
|
obj3.style = items;
|
|
let tmp3Result = null;
|
|
if (null != bannerSource) {
|
|
const obj4 = { style: tmp.image, source: bannerSource };
|
|
tmp3Result = tmp3(FastImageDefault, obj4);
|
|
}
|
|
obj3.children = tmp3Result;
|
|
return <View style={null}>{null}</View>;
|
|
};
|