Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
21 lines
547 B
JavaScript
21 lines
547 B
JavaScript
// Module ID: 1524
|
|
// Function ID: 1525
|
|
// Dependencies: [19, 1525]
|
|
// Exports: useRoute
|
|
|
|
// Module 1524
|
|
import _mod1525 from "module_1525" /* 1525 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = arg1;
|
|
|
|
export const useRoute = function useRoute() {
|
|
const context = noop.useContext(_mod1525.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;
|
|
}
|
|
};
|