Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
52 lines
1.7 KiB
TypeScript
52 lines
1.7 KiB
TypeScript
// Module ID: 7240
|
|
// Function ID: 7241
|
|
// Name: Emoji
|
|
// Dependencies: [19, 17, 1182, 21, 1364, 4294, 1177, 5673, 4489, 7241, 7242, 2]
|
|
// Exports: default
|
|
|
|
// Module 7240 (Emoji)
|
|
import EmojiUtilsDefault from "EmojiUtils" /* 4294 */;
|
|
import FastImageDefault from "FastImage" /* 5673 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import ThemeStore from "ThemeStore" /* 1182 */;
|
|
|
|
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(7241);
|
|
} else {
|
|
tmp9Result = tmp9(7242);
|
|
}
|
|
obj4.placeholder = tmp9Result;
|
|
const obj5 = { uri: uRL };
|
|
obj4.source = obj5;
|
|
obj4.onError = onError;
|
|
let tmp6Result = tmp6(tmp10, obj4);
|
|
tmpResult = tmp(4489);
|
|
}
|
|
obj3.children = tmp6Result;
|
|
return tmp6(tmp7, obj3);
|
|
}
|
|
}
|
|
tmp6Result = tmp6(tmp(1177).LegacyText, { style: textEmojiStyle, allowFontScaling: false, adjustsFontSizeToFit, children: name });
|
|
};
|