Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
52 lines
1.7 KiB
TypeScript
52 lines
1.7 KiB
TypeScript
// Module ID: 7233
|
|
// Function ID: 7234
|
|
// Name: Emoji
|
|
// Dependencies: [19, 17, 1183, 21, 1150, 4293, 1178, 5668, 4488, 7234, 7235, 2]
|
|
// Exports: default
|
|
|
|
// Module 7233 (Emoji)
|
|
import EmojiUtilsDefault from "EmojiUtils" /* 4293 */;
|
|
import FastImageDefault from "FastImage" /* 5668 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import ThemeStore from "ThemeStore" /* 1183 */;
|
|
|
|
const require = fn;
|
|
const View = fn(17).View;
|
|
const jsx = fn(21).jsx;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("modules/emojis/native/Emoji.tsx");
|
|
|
|
export default function Emoji(arg0) {
|
|
({ src, name } = arg0);
|
|
({ style, textEmojiStyle, fastImageStyle, forceTextEmoji, adjustsFontSizeToFit, onError } = arg0);
|
|
let uRL = src;
|
|
if (obj.isAndroid()) {
|
|
uRL = src;
|
|
if (null == src) {
|
|
uRL = EmojiUtilsDefault.getURL(name);
|
|
}
|
|
}
|
|
const obj3 = { style, children: null };
|
|
if (!forceTextEmoji) {
|
|
if (null != uRL) {
|
|
if ("" !== uRL) {
|
|
const obj4 = { resizeMode: "contain", style: fastImageStyle, placeholder: null, source: null, onError: null };
|
|
const tmp10 = FastImageDefault;
|
|
if (tmpResult.isThemeDark(ThemeStore.theme)) {
|
|
let tmp9Result = tmp9(7234);
|
|
} else {
|
|
tmp9Result = tmp9(7235);
|
|
}
|
|
obj4.placeholder = tmp9Result;
|
|
const obj5 = { uri: uRL };
|
|
obj4.source = obj5;
|
|
obj4.onError = onError;
|
|
let tmp6Result = tmp6(tmp10, obj4);
|
|
tmpResult = tmp(4488);
|
|
}
|
|
obj3.children = tmp6Result;
|
|
return tmp6(tmp7, obj3);
|
|
}
|
|
}
|
|
tmp6Result = tmp6(tmp(1178).LegacyText, { style: textEmojiStyle, allowFontScaling: false, adjustsFontSizeToFit, children: name });
|
|
};
|