// Module ID: 8761 // Function ID: 8762 // Name: ImageWithPlaceholder // Dependencies: [17, 21, 1115, 8762, 5587, 2] // Exports: ImageWithPlaceholder // Module 8761 (ImageWithPlaceholder) import jsxProd from "jsxProd" /* 21 */; import FastImageDefault from "FastImage" /* 5587 */; import ImageWithThumbhashPlaceholderNativeComponentDefault from "ImageWithThumbhashPlaceholderNativeComponent" /* 8762 */; import get_ActivityIndicator from "module_17" /* 17 */; import PlatformUtils from "PlatformUtils" /* 1115 */; import size from "module_2" /* 2 */; ({ View: c2, requireNativeComponent } = get_ActivityIndicator); const jsx = jsxProd.jsx; const style = { flex: 1 }; const ImagePlaceholderVersions = { THUMBHASH: 1, [1]: "THUMBHASH" }; if (PlatformUtils.isAndroid()) { let importDefaultResult = ImageWithThumbhashPlaceholderNativeComponentDefault; } else { importDefaultResult = requireNativeComponent("DCDImageWithThumbhashPlaceholderView"); } const metroRequire = importDefaultResult; const result = size.fileFinishedImporting("components_native/common/ImageWithPlaceholder.tsx"); export { ImagePlaceholderVersions }; export const ImageWithPlaceholder = function ImageWithPlaceholder(arg0) { ({ uri, placeholder, placeholderVersion, alt, style } = arg0); const merged = Object.assign(arg0, Object.assign({ uri: 0, placeholder: 0, placeholderVersion: 0, alt: 0, style: 0 })); if (null != placeholder) { if (placeholderVersion === obj.THUMBHASH) { const obj2 = {}; const merged1 = Object.assign(merged); obj2.style = style; obj2.uri = uri; obj2.placeholder = placeholder; obj2.placeholderVersion = placeholderVersion; obj2.alt = alt; let tmp4 = ; } return tmp4; } obj = { style }; const merged2 = Object.assign(merged); obj.children = jsx(FastImageDefault, { style, resizeMode: "cover", source: { uri }, alt }); tmp4 = ; };