decord/source/lib/native/Linking.tsx

28 lines
742 B
TypeScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 3827
2026-07-24 07:16:23 +00:00
// Function ID: 31806
2026-07-23 10:11:24 +00:00
// Dependencies: [27, 3822, 2]
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
// Module 3827
import { Linking } from "get ActivityIndicator";
const result = require("set").fileFinishedImporting("lib/native/Linking.tsx");
2026-07-20 16:05:17 +00:00
export default {
openURL(defaultResult1, defaultResult2) {
let flag = arg2;
if (arg2 === undefined) {
flag = true;
}
const obj = { allowExternal: flag };
2026-07-23 10:11:24 +00:00
require(3822) /* _createForOfIteratorHelperLoose */.default(defaultResult1, defaultResult2, obj);
2026-07-20 16:05:17 +00:00
},
openURLExternally(href, SAFARI) {
2026-07-23 10:11:24 +00:00
require(3822) /* _createForOfIteratorHelperLoose */.default(href, SAFARI, { forceExternalBrowser: true });
2026-07-20 16:05:17 +00:00
},
performURLNavigation(href) {
Linking.openURL(href).catch(() => {
});
}
};