decord/source/modules/animations/native/DeprecatedLayoutAnimation.tsx

57 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 5221
// Function ID: 5222
2026-07-29 08:29:29 +00:00
// Name: LayoutAnimation
2026-07-31 08:44:05 +00:00
// Dependencies: [17, 4185, 500, 2]
2026-07-29 08:29:29 +00:00
// Exports: DeprecatedLayoutAnimation, DeprecatedLayoutAnimationKeyboard
2026-07-20 16:05:17 +00:00
2026-07-31 08:44:05 +00:00
// Module 5221 (LayoutAnimation)
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
2026-07-29 08:29:29 +00:00
import maybeApplyNoTextColorForLightCustomTheme from "maybeApplyNoTextColorForLightCustomTheme";
2026-07-20 16:05:17 +00:00
import obj from "module_150";
import obj from "module_150";
let LayoutAnimation;
2026-07-29 08:29:29 +00:00
let obj1;
({ Keyboard: obj1, LayoutAnimation } = get_ActivityIndicator);
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/animations/native/DeprecatedLayoutAnimation.tsx");
2026-07-20 16:05:17 +00:00
export const CONFIG_GUILD_FOLDER_OPACITY = obj;
export const CONFIG_GUILD_FOLDER_SCALEXY = obj;
2026-07-29 08:29:29 +00:00
export const DeprecatedLayoutAnimation = function DeprecatedLayoutAnimation(duration) {
let useReducedMotion = maybeApplyNoTextColorForLightCustomTheme.useReducedMotion;
if (!useReducedMotion) {
useReducedMotion = require(500) /* set */.isAndroid();
const obj = require(500) /* set */;
}
if (!useReducedMotion) {
if (null != duration) {
LayoutAnimation.configureNext(duration);
} else {
LayoutAnimation.easeInEaseOut();
}
}
};
2026-07-20 16:05:17 +00:00
export const DeprecatedLayoutAnimationKeyboard = function DeprecatedLayoutAnimationKeyboard(keyboardDuration) {
let flag = arg1;
if (arg1 === undefined) {
flag = false;
}
if (flag) {
2026-07-29 08:29:29 +00:00
let obj = require(500) /* set */;
2026-07-20 16:05:17 +00:00
if (!obj.isAndroid()) {
2026-07-29 08:29:29 +00:00
obj = { duration: null };
obj[0] = keyboardDuration;
2026-07-20 16:05:17 +00:00
return closure_2.scheduleLayoutAnimation(obj);
}
}
obj = { duration: keyboardDuration, update: obj1 };
2026-07-29 08:29:29 +00:00
let useReducedMotion = maybeApplyNoTextColorForLightCustomTheme.useReducedMotion;
if (!useReducedMotion) {
useReducedMotion = require(500) /* set */.isAndroid();
const obj6 = require(500) /* set */;
}
if (!useReducedMotion) {
LayoutAnimation.configureNext(obj);
}
2026-07-20 16:05:17 +00:00
};