Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4941.js (118.4 MB)
55 lines
1.8 KiB
TypeScript
55 lines
1.8 KiB
TypeScript
// Module ID: 14458
|
|
// Function ID: 14459
|
|
// Name: migration
|
|
// Dependencies: [19, 21, 4756, 576, 4476, 4451, 1929, 1177, 2]
|
|
// Exports: IntlLink
|
|
|
|
// Module 14458 (migration)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import _modDef1929 from "module_1929" /* 1929 */;
|
|
import LinkingDefault from "Linking" /* 4451 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const require = fn;
|
|
const jsx = fn(21).jsx;
|
|
const createStyles = fn(4756);
|
|
let closure_5 = createStyles.createStyles((arg0) => {
|
|
const link = { color: nativeDefault.colors.TEXT_LINK, textDecorationLine: null };
|
|
let str = "none";
|
|
if (arg0) {
|
|
str = "underline";
|
|
}
|
|
link.textDecorationLine = str;
|
|
return { link };
|
|
});
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("intl/native/migration.tsx");
|
|
|
|
export const IntlLink = function IntlLink(children) {
|
|
const target = children.target;
|
|
if (typeof target === "string") {
|
|
let fn = function k() {
|
|
const obj = LinkingDefault;
|
|
return obj.openURL(_modDef1929.sanitizeUrl(target));
|
|
};
|
|
let str = "link";
|
|
} else {
|
|
str = "link";
|
|
fn = target;
|
|
if (typeof target === "object") {
|
|
str = "link";
|
|
fn = target;
|
|
if (null != target.onClick) {
|
|
({ accessibilityRole, onClick } = target);
|
|
if (accessibilityRole == null) {
|
|
accessibilityRole = "link";
|
|
}
|
|
str = accessibilityRole;
|
|
fn = onClick;
|
|
}
|
|
}
|
|
}
|
|
const tmp = target;
|
|
const tmp3 = closure_5(noop.useContext(target(4476).AccessibilityPreferencesContext).alwaysShowLinkDecorations);
|
|
return jsx(tmp(1177).LegacyText, { accessible: true, accessibilityRole: str, onPress: fn, style: closure_5(noop.useContext(target(4476).AccessibilityPreferencesContext).alwaysShowLinkDecorations).link, children: children.children });
|
|
};
|