Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
21 lines
547 B
JavaScript
21 lines
547 B
JavaScript
// Module ID: 1523
|
|
// Function ID: 1524
|
|
// Dependencies: [19, 1524]
|
|
// Exports: useRoute
|
|
|
|
// Module 1523
|
|
import _mod1524 from "module_1524" /* 1524 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = arg1;
|
|
|
|
export const useRoute = function useRoute() {
|
|
const context = noop.useContext(_mod1524.NavigationRouteContext);
|
|
if (undefined === context) {
|
|
const _Error = Error;
|
|
const error = new Error("Couldn't find a route object. Is your component inside a screen in a navigator?");
|
|
throw error;
|
|
} else {
|
|
return context;
|
|
}
|
|
};
|