decord/alpha/source/lib/native/Linking.tsx

33 lines
793 B
TypeScript
Raw Permalink Normal View History

2026-10-10 08:08:14 +00:00
// Module ID: 4806
// Function ID: 4807
// Name: Linking
2026-10-10 08:08:14 +00:00
// Dependencies: [17, 4801, 2]
2026-07-20 16:05:17 +00:00
2026-10-10 08:08:14 +00:00
// Module 4806 (Linking)
2026-10-03 08:58:59 +00:00
import react_native from "react-native" /* 17 */;
2026-10-10 08:08:14 +00:00
import handleURL from "handleURL" /* 4801 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
const Linking = react_native.Linking;
const obj = {
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;
}
handleURL.default(arg0, arg1, { allowExternal: flag });
2026-07-20 16:05:17 +00:00
},
openURLExternally(href, SAFARI) {
handleURL.default(href, SAFARI, { forceExternalBrowser: true });
2026-07-20 16:05:17 +00:00
},
performURLNavigation(href) {
2026-10-03 08:58:59 +00:00
const openURLResult = Linking.openURL(href);
openURLResult.catch(() => {
2026-07-20 16:05:17 +00:00
});
}
};
2026-10-03 08:58:59 +00:00
const result = size.fileFinishedImporting("lib/native/Linking.tsx");
export default obj;