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

33 lines
793 B
TypeScript
Raw Normal View History

2026-10-07 22:43:51 +00:00
// Module ID: 4565
// Function ID: 4566
// Name: Linking
2026-10-07 22:43:51 +00:00
// Dependencies: [17, 4560, 2]
2026-10-07 22:43:51 +00:00
// Module 4565 (Linking)
2026-10-01 14:13:23 +00:00
import react_native from "react-native" /* 17 */;
2026-10-07 22:43:51 +00:00
import handleURL from "handleURL" /* 4560 */;
import size from "module_2" /* 2 */;
2026-10-01 14:13:23 +00:00
const Linking = react_native.Linking;
const obj = {
openURL(arg0, arg1) {
let flag = arg2;
if (arg2 === undefined) {
flag = true;
}
handleURL.default(arg0, arg1, { allowExternal: flag });
},
openURLExternally(href, SAFARI) {
handleURL.default(href, SAFARI, { forceExternalBrowser: true });
},
performURLNavigation(href) {
2026-10-01 14:13:23 +00:00
const openURLResult = Linking.openURL(href);
openURLResult.catch(() => {
});
}
};
2026-10-01 14:13:23 +00:00
const result = size.fileFinishedImporting("lib/native/Linking.tsx");
export default obj;