45 lines
1.9 KiB
React
45 lines
1.9 KiB
React
/* Metro module 1566; source: unknown; dependencies: [31, 27] */
|
|
function _fun17534(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#17534, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1693:6, offset: 0x00e6f67d, size: 98 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(27) /* metro dependency 27 */).BackHandler;
|
|
exports.default = function(a0) {
|
|
a0.useEffect(_fun17536, [a0]);
|
|
};
|
|
}
|
|
|
|
function useBackButton(a0) { // fn#17535, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1693:138, offset: 0x00e6f6df, size: 44 bytes, params: 2, frame: 14
|
|
a0.useEffect(function() {
|
|
var env0_0 = BackHandler.addEventListener('hardwareBackPress', _fun17537);
|
|
return _fun17538;
|
|
}, [a0]);
|
|
}
|
|
|
|
function _fun17536() { // fn#17536, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1693:177, offset: 0x00e6f70b, size: 43 bytes, params: 1, frame: 14
|
|
const env0_0 = BackHandler.addEventListener('hardwareBackPress', _fun17537);
|
|
return _fun17538;
|
|
}
|
|
|
|
function _fun17537() { // fn#17537, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:1693:234, offset: 0x00e6f736, size: 57 bytes, params: 1, frame: 11
|
|
var r1;
|
|
var r0;
|
|
let value = environment.__proto__;
|
|
const current = env1_0.current;
|
|
value = current != null;
|
|
if (value) {
|
|
value = current.canGoBack();
|
|
if (value) {
|
|
current.goBack();
|
|
r1 = true;
|
|
} else {
|
|
r1 = !!value;
|
|
}
|
|
r0 = r1;
|
|
} else {
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|