36 lines
1.7 KiB
JavaScript
36 lines
1.7 KiB
JavaScript
/* Metro module 1491; source: unknown; dependencies: [] */
|
|
function _fun17001(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17001, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1618:6, offset: 0x00e61538, size: 85 bytes, params: 8, frame: 16
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
exports.goBack = function() {
|
|
return {type: 'GO_BACK'};
|
|
};
|
|
exports.navigate = navigate;
|
|
exports.reset = function(a0) {
|
|
return {type: 'RESET', payload: a0};
|
|
};
|
|
exports.setParams = function(a0) {
|
|
return {type: 'SET_PARAMS', payload: {params: a0}};
|
|
};
|
|
}
|
|
|
|
function navigate() { // fn#17003, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1618:154, offset: 0x00e6159b, size: 208 bytes, params: 1, frame: 15
|
|
const value = undefined;
|
|
if (typeof (arguments.length <= 0 ? value : arguments[0]) === 'string') {
|
|
return {type: 'NAVIGATE', payload: {name: arguments.length <= 0 ? value : arguments[0],
|
|
params: arguments.length <= 1 ? value : arguments[1]}};
|
|
}
|
|
let r1 = arguments.length <= 0 ? value : arguments[0];
|
|
r1 = !r1 ? {} : r1;
|
|
if (r1.hasOwnProperty('key')) {
|
|
return {type: 'NAVIGATE', payload: r1};
|
|
}
|
|
if (r1.hasOwnProperty('name')) {
|
|
return {type: 'NAVIGATE', payload: r1};
|
|
}
|
|
const Error = global.Error;
|
|
throw new Error('You need to specify name or key when calling navigate with an object as the argument. See https://reactnavigation.org/docs/navigation-actions#navigate for usage.');
|
|
}
|
|
|
|
global.__d(_fun17001, 1491, []) /* metro module 1491 */;
|