Files
2026-07-28 01:06:53 +03:00

48 lines
2.7 KiB
TypeScript

/* Metro module 5465; source: modules/animations/native/DeprecatedLayoutAnimation.tsx; dependencies: [27, 4502, 477, 2] */
import AccessibilityStore from '../../a11y/AccessibilityStore.tsx'; /* Metro dependency 4502 */
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
import * as ReactNativeModule from '../../../by-id/module-00027-ReactNative.js'; /* Metro dependency 27 */
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 = ReactNativeModule;
const env0_2 = value.Keyboard;
const LayoutAnimation = value.LayoutAnimation;
value = LayoutAnimation.create(150, 'easeInEaseOut', 'opacity');
const value2 = LayoutAnimation.create(150, 'easeInEaseOut', 'scaleXY');
(FileImportTrackerModule).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}});
}
}
global.__d(_fun48042, 5465, [27, 4502, 477, 2]) /* metro module 5465, dependencies: [27, 4502, 477, 2] */;