21 lines
1.2 KiB
React
21 lines
1.2 KiB
React
/* Metro module 1536; source: unknown; dependencies: [31, 1507, 1512] */
|
|
function _fun17353(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17353, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1663:6, offset: 0x00e6a8db, size: 84 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_2 = importAll(31) /* metro dependency 31 */;
|
|
exports.default = useNavigation_17354;
|
|
}
|
|
|
|
function useNavigation_17354() { // fn#17354, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1663:116, offset: 0x00e6a92f, size: 118 bytes, params: 1, frame: 15
|
|
const binding = env0_2;
|
|
const value = binding.useContext(importDefault(1507) /* metro dependency 1507 */);
|
|
const value2 = binding.useContext(importDefault(1512) /* metro dependency 1512 */);
|
|
if (value2 === undefined) {
|
|
if (value === undefined) {
|
|
throw new global.Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");
|
|
}
|
|
}
|
|
return value2 ?? value;
|
|
}
|
|
|