Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
43 lines
1.2 KiB
JavaScript
43 lines
1.2 KiB
JavaScript
// Module ID: 1678
|
|
// Function ID: 1679
|
|
// Dependencies: [1640, 1674]
|
|
// Exports: isReducedMotionEnabledInSystem
|
|
|
|
// Module 1678
|
|
import module_1640 from "module_1640" /* 1640 */;
|
|
import module_1674 from "module_1674" /* 1674 */;
|
|
|
|
if (module_1640.isWeb()) {
|
|
const _module1 = module_1640;
|
|
let matches = _module1.isWindowAvailable();
|
|
if (matches) {
|
|
let _window = window;
|
|
matches = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
}
|
|
let prop = matches;
|
|
} else {
|
|
prop = global._REANIMATED_IS_REDUCED_MOTION;
|
|
}
|
|
const ReducedMotionManager = { jsValue: prop, uiValue: null, setEnabled: null };
|
|
function isReducedMotionEnabledInSystem() {
|
|
if (obj.isWeb()) {
|
|
let matches = module_1640.isWindowAvailable();
|
|
if (matches) {
|
|
const _window = window;
|
|
matches = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
}
|
|
let prop = matches;
|
|
const tmpResult = module_1640;
|
|
} else {
|
|
prop = global._REANIMATED_IS_REDUCED_MOTION;
|
|
}
|
|
return prop;
|
|
}
|
|
ReducedMotionManager.uiValue = module_1674.makeMutable(prop);
|
|
ReducedMotionManager.setEnabled = function setEnabled(jsValue) {
|
|
obj.jsValue = jsValue;
|
|
obj.uiValue.value = jsValue;
|
|
};
|
|
|
|
export { isReducedMotionEnabledInSystem };
|
|
export { ReducedMotionManager };
|