decord/source/5341___react_navigation__elements_contexts.js
2026-08-12 06:57:52 +00:00

29 lines
1 KiB
JavaScript

// Module ID: 5341
// Function ID: 5342
// Name: __react_navigation__elements_contexts
// Dependencies: [19]
// Exports: getNamedContext
// Module 5341 (__react_navigation__elements_contexts)
import noop from "noop";
let __react_navigation__elements_contexts = "__react_navigation__elements_contexts";
__react_navigation__elements_contexts = globalThis.__react_navigation__elements_contexts;
if (__react_navigation__elements_contexts == null) {
const _Map = Map;
__react_navigation__elements_contexts = new Map();
}
globalThis.__react_navigation__elements_contexts = __react_navigation__elements_contexts;
export const getNamedContext = function getNamedContext(FrameContext, arg1) {
let value = globalThis[__react_navigation__elements_contexts].get(FrameContext);
if (!value) {
const context = React.createContext(arg1);
context.displayName = FrameContext;
const _globalThis = globalThis;
const result = globalThis[tmp].set(FrameContext, context);
value = context;
const obj2 = globalThis[tmp];
}
return value;
};