decord/source/6375___react_navigation__elements_contexts.js
2026-08-24 06:08:38 +00:00

29 lines
1 KiB
JavaScript

// Module ID: 6375
// Function ID: 6376
// Name: __react_navigation__elements_contexts
// Dependencies: [19]
// Exports: getNamedContext
// Module 6375 (__react_navigation__elements_contexts)
import closure_0 from "noop" /* 19 */;
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;
};