56 lines
1.9 KiB
TypeScript
56 lines
1.9 KiB
TypeScript
// Module ID: 5221
|
|
// Function ID: 5222
|
|
// Name: LayoutAnimation
|
|
// Dependencies: [17, 4185, 500, 2]
|
|
// Exports: DeprecatedLayoutAnimation, DeprecatedLayoutAnimationKeyboard
|
|
|
|
// Module 5221 (LayoutAnimation)
|
|
import get_ActivityIndicator from "get ActivityIndicator";
|
|
import maybeApplyNoTextColorForLightCustomTheme from "maybeApplyNoTextColorForLightCustomTheme";
|
|
import obj from "module_150";
|
|
import obj from "module_150";
|
|
|
|
let LayoutAnimation;
|
|
let obj1;
|
|
({ Keyboard: obj1, LayoutAnimation } = get_ActivityIndicator);
|
|
const result = require("set").fileFinishedImporting("modules/animations/native/DeprecatedLayoutAnimation.tsx");
|
|
|
|
export const CONFIG_GUILD_FOLDER_OPACITY = obj;
|
|
export const CONFIG_GUILD_FOLDER_SCALEXY = obj;
|
|
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();
|
|
}
|
|
}
|
|
};
|
|
export const DeprecatedLayoutAnimationKeyboard = function DeprecatedLayoutAnimationKeyboard(keyboardDuration) {
|
|
let flag = arg1;
|
|
if (arg1 === undefined) {
|
|
flag = false;
|
|
}
|
|
if (flag) {
|
|
let obj = require(500) /* set */;
|
|
if (!obj.isAndroid()) {
|
|
obj = { duration: null };
|
|
obj[0] = keyboardDuration;
|
|
return closure_2.scheduleLayoutAnimation(obj);
|
|
}
|
|
}
|
|
obj = { duration: keyboardDuration, update: obj1 };
|
|
let useReducedMotion = maybeApplyNoTextColorForLightCustomTheme.useReducedMotion;
|
|
if (!useReducedMotion) {
|
|
useReducedMotion = require(500) /* set */.isAndroid();
|
|
const obj6 = require(500) /* set */;
|
|
}
|
|
if (!useReducedMotion) {
|
|
LayoutAnimation.configureNext(obj);
|
|
}
|
|
};
|