35 lines
1.7 KiB
React
35 lines
1.7 KiB
React
/* Metro module 1554; source: unknown; dependencies: [31, 33] */
|
|
function _fun17490(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17490, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1681:6, offset: 0x00e6e3d0, size: 106 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_0 = importAll(31) /* metro dependency 31 */;
|
|
const env0_1 = (require(33) /* metro dependency 33 */).jsx;
|
|
const NavigationContent = function(a0) {
|
|
return a0.render(a0.children);
|
|
};
|
|
exports.default = useComponent;
|
|
}
|
|
|
|
function useComponent(a0) { // fn#17492, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1681:194, offset: 0x00e6e451, size: 69 bytes, params: 2, frame: 13
|
|
const binding = env0_0;
|
|
let useRef = binding.useRef;
|
|
Reflect.apply(useRef, binding, [a0]).current = a0;
|
|
binding.useEffect(_fun17493);
|
|
useRef = binding.useRef;
|
|
return Reflect.apply(useRef, binding, [_fun17494]).current;
|
|
}
|
|
|
|
function _fun17494({children}) { // fn#17494, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1681:308, offset: 0x00e6e496, size: 94 bytes, params: 2, frame: 14
|
|
const current = env0_0.current;
|
|
if (current === null) {
|
|
throw new global.Error('The returned component must be rendered in the same render phase as the hook.');
|
|
}
|
|
const value = environment.__proto__;
|
|
return (
|
|
<NavigationContent render={current}>
|
|
{children}
|
|
</NavigationContent>
|
|
);
|
|
}
|
|
|