decord/source/lib/native/Linking.tsx

27 lines
648 B
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 3886
// Function ID: 3887
// Dependencies: [17, 3881, 2]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 3886
2026-07-23 10:11:24 +00:00
import { Linking } from "get ActivityIndicator";
const result = require("set").fileFinishedImporting("lib/native/Linking.tsx");
2026-07-20 16:05:17 +00:00
export default {
2026-07-29 08:29:29 +00:00
openURL(arg0, arg1) {
2026-07-20 16:05:17 +00:00
let flag = arg2;
if (arg2 === undefined) {
flag = true;
}
2026-07-29 08:29:29 +00:00
require(3881) /* sanitizeURLPart */.default(arg0, arg1, { allowExternal: flag });
2026-07-20 16:05:17 +00:00
},
openURLExternally(href, SAFARI) {
2026-07-29 08:29:29 +00:00
require(3881) /* sanitizeURLPart */.default(href, SAFARI, { forceExternalBrowser: true });
2026-07-20 16:05:17 +00:00
},
performURLNavigation(href) {
Linking.openURL(href).catch(() => {
});
}
};