Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
52 lines
1.9 KiB
TypeScript
52 lines
1.9 KiB
TypeScript
// Module ID: 5662
|
|
// Function ID: 5663
|
|
// Name: DeprecatedLayoutAnimation
|
|
// Dependencies: [17, 4628, 1363, 2]
|
|
// Exports: DeprecatedLayoutAnimation, DeprecatedLayoutAnimationKeyboard
|
|
|
|
// Module 5662 (DeprecatedLayoutAnimation)
|
|
import PlatformUtils from "PlatformUtils" /* 1363 */;
|
|
import get_ActivityIndicator from "module_17" /* 17 */;
|
|
import AccessibilityStore from "AccessibilityStore" /* 4628 */;
|
|
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);
|
|
}
|
|
};
|