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

56 lines
1.7 KiB
TypeScript
Raw Normal View History

// Module ID: 5581
// Function ID: 5582
2026-07-29 08:29:29 +00:00
// Name: LayoutAnimation
// Dependencies: [17, 4552, 1115, 2]
2026-07-29 08:29:29 +00:00
// Exports: DeprecatedLayoutAnimation, DeprecatedLayoutAnimationKeyboard
2026-07-20 16:05:17 +00:00
// Module 5581 (LayoutAnimation)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import set2 from "set" /* 1115 */;
2026-08-24 06:08:38 +00:00
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import closure_4 from "maybeApplyNoTextColorForLightCustomTheme" /* 4552 */;
2026-08-24 06:08:38 +00:00
import obj from "module_150" /* 150 */;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
({ Keyboard: obj1, LayoutAnimation } = get_ActivityIndicator);
2026-08-24 06:08:38 +00:00
const result = 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) {
2026-08-24 06:08:38 +00:00
let useReducedMotion = closure_4.useReducedMotion;
2026-07-29 08:29:29 +00:00
if (!useReducedMotion) {
2026-08-24 06:08:38 +00:00
useReducedMotion = set2.isAndroid();
const obj = set2;
2026-07-29 08:29:29 +00:00
}
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-08-24 06:08:38 +00:00
let obj = set2;
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-08-24 06:08:38 +00:00
let useReducedMotion = closure_4.useReducedMotion;
2026-07-29 08:29:29 +00:00
if (!useReducedMotion) {
2026-08-24 06:08:38 +00:00
useReducedMotion = set2.isAndroid();
const obj6 = set2;
2026-07-29 08:29:29 +00:00
}
if (!useReducedMotion) {
LayoutAnimation.configureNext(obj);
}
2026-07-20 16:05:17 +00:00
};