decord/source/modules/emojis/native/Emoji.tsx

59 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 5150
2026-07-27 11:26:19 +00:00
// Function ID: 44932
2026-07-20 16:05:17 +00:00
// Name: Emoji
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 27, 1278, 33, 477, 3776, 1273, 5085, 3977, 5151, 5152, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 5150 (Emoji)
2026-07-23 10:11:24 +00:00
import "result";
import { View } from "get ActivityIndicator";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { jsx } from "jsxProd";
const require = arg1;
const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/emojis/native/Emoji.tsx");
2026-07-20 16:05:17 +00:00
export default function Emoji(arg0) {
let adjustsFontSizeToFit;
let fastImageStyle;
let forceTextEmoji;
let name;
let src;
let style;
let textEmojiStyle;
({ src, name } = arg0);
({ style, textEmojiStyle, fastImageStyle, forceTextEmoji, adjustsFontSizeToFit } = arg0);
2026-07-23 10:11:24 +00:00
let obj = require(477) /* set */;
2026-07-20 16:05:17 +00:00
let uRL = src;
if (obj.isAndroid()) {
uRL = src;
if (null == src) {
2026-07-25 08:10:48 +00:00
let obj1 = importDefault(3776);
2026-07-20 16:05:17 +00:00
uRL = obj1.getURL(name);
}
}
obj = { style };
if (!forceTextEmoji) {
if (null != uRL) {
if ("" !== uRL) {
obj = { resizeMode: "contain", style: fastImageStyle };
const tmp10 = jsx;
2026-07-23 10:11:24 +00:00
const tmp13 = importDefault(5085);
2026-07-20 16:05:17 +00:00
if (obj6.isThemeDark(theme.theme)) {
2026-07-25 08:10:48 +00:00
let tmp16Result = tmp16(5151);
2026-07-20 16:05:17 +00:00
} else {
2026-07-25 08:10:48 +00:00
tmp16Result = tmp16(5152);
2026-07-20 16:05:17 +00:00
}
obj.placeholder = tmp16Result;
obj1 = { uri: uRL };
obj.source = obj1;
let tmp10Result = tmp10(tmp13, obj);
2026-07-25 08:10:48 +00:00
obj6 = require(3977) /* AccessibilityAnnouncer */;
2026-07-20 16:05:17 +00:00
}
obj.children = tmp10Result;
return tmp5(tmp6, obj);
}
}
2026-07-23 10:11:24 +00:00
tmp10Result = jsx(require(1273) /* Button */.LegacyText, { style: textEmojiStyle, allowFontScaling: false, adjustsFontSizeToFit, children: name });
2026-07-20 16:05:17 +00:00
};