decord/alpha/source/lib/native/Linking.tsx
2026-10-10 08:08:14 +00:00

32 lines
793 B
TypeScript

// Module ID: 4806
// Function ID: 4807
// Name: Linking
// Dependencies: [17, 4801, 2]
// Module 4806 (Linking)
import react_native from "react-native" /* 17 */;
import handleURL from "handleURL" /* 4801 */;
import size from "module_2" /* 2 */;
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) {
const openURLResult = Linking.openURL(href);
openURLResult.catch(() => {
});
}
};
const result = size.fileFinishedImporting("lib/native/Linking.tsx");
export default obj;