36 lines
1.9 KiB
TypeScript
36 lines
1.9 KiB
TypeScript
// Metro module 4190 (f4191).
|
|
import { CONFIG_NEVER_ANIMATE_TIMING } from "../ReanimatedConstants";
|
|
import * as _AccessibilityPreferencesSharedValue_native from "../AccessibilityPreferencesSharedValue.native";
|
|
import * as _ReanimatedRexport from "../../../../modules/reanimated/ReanimatedRexport";
|
|
export function withTiming(a0, a1, r7 = "respect-motion-settings") {
|
|
let r1, r17;
|
|
L11: {
|
|
L6: {
|
|
const reduceMotion = _AccessibilityPreferencesSharedValue_native.accessibilityPreferencesSharedValue.get().reduceMotion;
|
|
r1 = r7 === "animate-always";
|
|
if (!r1) {
|
|
if (r7 === "respect-motion-settings" && !reduceMotion) {
|
|
break L6;
|
|
}
|
|
r17 = CONFIG_NEVER_ANIMATE_TIMING;
|
|
break L11;
|
|
}
|
|
}
|
|
r17 = r1 ? {
|
|
...a1 == null ? {} : a1,
|
|
reduceMotion: _ReanimatedRexport.ReduceMotion.Never
|
|
} : a1;
|
|
}
|
|
return _ReanimatedRexport.withTiming(a0, r17, arguments[3]);
|
|
}
|
|
withTiming.__closure = {
|
|
accessibilityPreferencesSharedValue: _AccessibilityPreferencesSharedValue_native.accessibilityPreferencesSharedValue,
|
|
CONFIG_NEVER_ANIMATE_TIMING,
|
|
ReduceMotion: _ReanimatedRexport.ReduceMotion,
|
|
REAwithTiming: _ReanimatedRexport.withTiming
|
|
};
|
|
withTiming.__workletHash = 6710776253444;
|
|
withTiming.__initData = {
|
|
code: "function withTiming_timingTsx1(toValue,config,shouldAnimate='respect-motion-settings',callback){const{accessibilityPreferencesSharedValue,CONFIG_NEVER_ANIMATE_TIMING,ReduceMotion,REAwithTiming}=this.__closure;const reducedMotionEnabled=accessibilityPreferencesSharedValue.get().reduceMotion;const animate=shouldAnimate==='animate-always'||shouldAnimate==='respect-motion-settings'&&!reducedMotionEnabled;const configForRea=!animate?CONFIG_NEVER_ANIMATE_TIMING:shouldAnimate==='animate-always'?{...(config!==null&&config!==void 0?config:{}),reduceMotion:ReduceMotion.Never}:config;return REAwithTiming(toValue,configForRea,callback);}"
|
|
};
|