2026-08-15 05:55:55 +00:00
|
|
|
// Module ID: 1543
|
|
|
|
|
// Function ID: 1544
|
2026-08-06 08:05:19 +00:00
|
|
|
// Name: useNavigation
|
2026-08-15 05:55:55 +00:00
|
|
|
// Dependencies: [19, 1531, 1544]
|
2026-08-06 08:05:19 +00:00
|
|
|
// Exports: useNavigation
|
|
|
|
|
|
2026-08-15 05:55:55 +00:00
|
|
|
// Module 1543 (useNavigation)
|
2026-08-06 08:05:19 +00:00
|
|
|
import noop from "noop";
|
|
|
|
|
|
|
|
|
|
const require = arg1;
|
|
|
|
|
|
|
|
|
|
export const useNavigation = function useNavigation() {
|
2026-08-15 05:55:55 +00:00
|
|
|
const context = React.useContext(require(1531) /* NavigationContainerRefContext */.NavigationContainerRefContext);
|
|
|
|
|
let context1 = React.useContext(require(1544) /* NavigationContext */.NavigationContext);
|
2026-08-06 08:05:19 +00:00
|
|
|
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;
|
|
|
|
|
};
|