decord/source/__polyfill/01xxx/module_1526.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

27 lines
857 B
JavaScript

// Module ID: 1526
// Function ID: 1527
// Dependencies: [19, 1514, 1527]
// Exports: useNavigation
// Module 1526
import NavigationContainerRefContext from "NavigationContainerRefContext" /* 1514 */;
import NavigationContext from "NavigationContext" /* 1527 */;
import noop from "module_19" /* 19 */;
require = arg1;
export const useNavigation = function useNavigation() {
const context = noop.useContext(NavigationContainerRefContext.NavigationContainerRefContext);
let context1 = noop.useContext(NavigationContext.NavigationContext);
if (undefined === context1) {
if (undefined === context) {
const _Error = Error;
const error = new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");
throw error;
}
}
if (context1 == null) {
context1 = context;
}
return context1;
};