decord/alpha/source/modules/animations/native/DeprecatedLayoutAnimation.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

52 lines
1.9 KiB
TypeScript

// Module ID: 5886
// Function ID: 5887
// Name: DeprecatedLayoutAnimation
// Dependencies: [17, 4821, 1364, 2]
// Exports: DeprecatedLayoutAnimation, DeprecatedLayoutAnimationKeyboard
// Module 5886 (DeprecatedLayoutAnimation)
import PlatformUtils from "PlatformUtils" /* 1364 */;
import get_ActivityIndicator from "module_17" /* 17 */;
import AccessibilityStore from "AccessibilityStore" /* 4821 */;
import size from "module_2" /* 2 */;
({ Keyboard: c2, LayoutAnimation } = get_ActivityIndicator);
let obj = LayoutAnimation.create(150, "easeInEaseOut", "opacity");
const result = size.fileFinishedImporting("modules/animations/native/DeprecatedLayoutAnimation.tsx");
export const CONFIG_GUILD_FOLDER_OPACITY = obj;
export const CONFIG_GUILD_FOLDER_SCALEXY = LayoutAnimation.create(150, "easeInEaseOut", "scaleXY");
export const DeprecatedLayoutAnimation = function DeprecatedLayoutAnimation(duration) {
let useReducedMotion = AccessibilityStore.useReducedMotion;
if (!useReducedMotion) {
useReducedMotion = PlatformUtils.isAndroid();
}
if (!useReducedMotion) {
if (null != duration) {
LayoutAnimation.configureNext(duration);
} else {
LayoutAnimation.easeInEaseOut();
}
}
};
export const DeprecatedLayoutAnimationKeyboard = function DeprecatedLayoutAnimationKeyboard(keyboardDuration) {
let flag = arg1;
if (arg1 === undefined) {
flag = false;
}
if (flag) {
if (!obj.isAndroid()) {
const obj2 = { duration: keyboardDuration };
return React2.scheduleLayoutAnimation(obj2);
}
obj = PlatformUtils;
}
const obj3 = { duration: keyboardDuration, update: { duration: keyboardDuration, type: LayoutAnimation.Types.keyboard } };
let useReducedMotion = AccessibilityStore.useReducedMotion;
if (!useReducedMotion) {
useReducedMotion = PlatformUtils.isAndroid();
}
if (!useReducedMotion) {
LayoutAnimation.configureNext(obj3);
}
};