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

33 lines
793 B
TypeScript
Raw Permalink Normal View History

2026-10-06 22:12:49 +00:00
// Module ID: 4528
// Function ID: 4529
// Name: Linking
2026-10-06 22:12:49 +00:00
// Dependencies: [17, 4523, 2]
2026-10-06 22:12:49 +00:00
// Module 4528 (Linking)
import react_native from "react-native" /* 17 */;
import handleURL from "handleURL" /* 4523 */;
import size from "module_2" /* 2 */;
2026-10-06 22:12:49 +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-06 22:12:49 +00:00
const openURLResult = Linking.openURL(href);
openURLResult.catch(() => {
});
}
};
2026-10-06 22:12:49 +00:00
const result = size.fileFinishedImporting("lib/native/Linking.tsx");
export default obj;