decord/source/1509_createNavigatorFactory.js

25 lines
809 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 1509
// Function ID: 1510
2026-07-20 16:05:17 +00:00
// Name: createNavigatorFactory
2026-07-29 08:29:29 +00:00
// Dependencies: [1510, 1511]
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
// Module 1509 (createNavigatorFactory)
2026-07-23 10:11:24 +00:00
const module = arg2;
const dependencyMap = arg6;
2026-07-20 16:05:17 +00:00
arg5.default = function createNavigatorFactory(arg0) {
2026-07-23 10:11:24 +00:00
let closure_0 = arg0;
2026-07-20 16:05:17 +00:00
return () => {
if (undefined !== arguments[0]) {
const _Error = Error;
const error = new Error("Creating a navigator doesn't take an argument. Maybe you are trying to use React Navigation 4 API? See https://reactnavigation.org/docs/hello-react-navigation for the latest API and guides.");
throw error;
} else {
2026-07-29 08:29:29 +00:00
const obj = { Navigator: null, Group: null, Screen: null };
obj[0] = callback;
obj[1] = callback(outer1_1[0]);
obj[2] = callback(outer1_1[1]);
2026-07-20 16:05:17 +00:00
return obj;
}
};
};