Files
discord-decomp/sources/modules/animations/native/DeprecatedLayoutAnimation.tsx
T
2026-07-27 16:20:00 +03:00

44 lines
2.4 KiB
TypeScript

/* Metro module 5465; source: modules/animations/native/DeprecatedLayoutAnimation.tsx; dependencies: [27, 4502, 477, 2] */
function _fun48042(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#48042, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5643:6, offset: 0x011d816d, size: 214 bytes, params: 8, frame: 22
const env0_0 = require;
const closure = function(a0) {
var useReducedMotion = AccessibilityStore.useReducedMotion;
if (!(useReducedMotion || require(dependencyMap[2]).isAndroid())) {
if (a0 != null) {
LayoutAnimation.configureNext(a0);
} else {
LayoutAnimation.easeInEaseOut();
}
}
};
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
let value = require(27) /* metro dependency 27 */;
const env0_2 = value.Keyboard;
const LayoutAnimation = value.LayoutAnimation;
const accessibilityStore = importDefault(4502) /* metro dependency 4502: AccessibilityStore */;
value = LayoutAnimation.create(150, 'easeInEaseOut', 'opacity');
const value2 = LayoutAnimation.create(150, 'easeInEaseOut', 'scaleXY');
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/animations/native/DeprecatedLayoutAnimation.tsx');
exports.CONFIG_GUILD_FOLDER_OPACITY = value;
exports.CONFIG_GUILD_FOLDER_SCALEXY = value2;
exports.DeprecatedLayoutAnimation = closure;
exports.DeprecatedLayoutAnimationKeyboard = DeprecatedLayoutAnimationKeyboard;
}
function DeprecatedLayoutAnimationKeyboard(a0) { // fn#48044, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:5643:602, offset: 0x011d82a2, size: 127 bytes, params: 2, frame: 14
var moduleValue;
const value = a1;
if (value !== undefined ? value : false) {
moduleValue = require(477) /* metro dependency 477: PlatformUtils */;
if (moduleValue.isAndroid()) {
DeprecatedLayoutAnimation({duration: a0, update: {duration: a0, type: LayoutAnimation.Types.keyboard}});
return undefined;
}
return Keyboard.scheduleLayoutAnimation({duration: a0});
}
const Types = LayoutAnimation.Types;
DeprecatedLayoutAnimation({duration: a0, update: {duration: a0, type: Types.keyboard}});
}