decord/beta/source/lib/native/Linking.tsx
2026-10-07 22:43:51 +00:00

32 lines
793 B
TypeScript

// Module ID: 4565
// Function ID: 4566
// Name: Linking
// Dependencies: [17, 4560, 2]
// Module 4565 (Linking)
import react_native from "react-native" /* 17 */;
import handleURL from "handleURL" /* 4560 */;
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;