Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
32 lines
1.3 KiB
JavaScript
32 lines
1.3 KiB
JavaScript
// Module ID: 1524
|
|
// Function ID: 1525
|
|
// Dependencies: [19, 21, 1525, 1527]
|
|
// Exports: NavigationProvider
|
|
|
|
// Module 1524
|
|
import context12 from "context1" /* 1525 */;
|
|
import NavigationContext from "NavigationContext" /* 1527 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
const jsx = fn(21).jsx;
|
|
let context = noop.createContext(undefined);
|
|
|
|
export const NavigationRouteContext = context;
|
|
export const NamedRouteContextListContext = noop.createContext(undefined);
|
|
export const NavigationProvider = function NavigationProvider(route) {
|
|
route = route.route;
|
|
({ navigation, children } = route);
|
|
context = noop.useContext(context12.IsFocusedContext);
|
|
let tmp5 = null != context;
|
|
const context1 = noop.useContext(context12.FocusedRouteKeyContext);
|
|
if (tmp5) {
|
|
tmp5 = !context;
|
|
}
|
|
let tmp6 = !tmp5;
|
|
if (!tmp5) {
|
|
tmp6 = context1 === route.key;
|
|
}
|
|
const obj = { value: route, children: jsx(NavigationContext.NavigationContext.Provider, { value: navigation, children: jsx(context12.IsFocusedContext.Provider, { value: tmp6, children }) }) };
|
|
return <context.Provider value={route}>{jsx(NavigationContext.NavigationContext.Provider, { value: navigation, children: jsx(context12.IsFocusedContext.Provider, { value: tmp6, children }) })}</context.Provider>;
|
|
};
|