decord/source/lib/native/Linking.tsx

30 lines
752 B
TypeScript
Raw Normal View History

2026-09-01 10:26:29 +00:00
// Module ID: 4190
// Function ID: 4191
// Dependencies: [17, 4185, 2]
2026-07-20 16:05:17 +00:00
2026-09-01 10:26:29 +00:00
// Module 4190
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
2026-09-01 10:26:29 +00:00
import sanitizeURLPart from "sanitizeURLPart" /* 4185 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const Linking = get_ActivityIndicator.Linking;
const result = 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-08-24 06:08:38 +00:00
sanitizeURLPart.default(arg0, arg1, { allowExternal: flag });
2026-07-20 16:05:17 +00:00
},
openURLExternally(href, SAFARI) {
2026-08-24 06:08:38 +00:00
sanitizeURLPart.default(href, SAFARI, { forceExternalBrowser: true });
2026-07-20 16:05:17 +00:00
},
performURLNavigation(href) {
Linking.openURL(href).catch(() => {
});
}
};