Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
43 lines
1.2 KiB
JavaScript
43 lines
1.2 KiB
JavaScript
// Module ID: 1677
|
|
// Function ID: 1678
|
|
// Dependencies: [1639, 1673]
|
|
// Exports: isReducedMotionEnabledInSystem
|
|
|
|
// Module 1677
|
|
import module_1639 from "module_1639" /* 1639 */;
|
|
import module_1673 from "module_1673" /* 1673 */;
|
|
|
|
if (module_1639.isWeb()) {
|
|
const _module1 = module_1639;
|
|
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_1639.isWindowAvailable();
|
|
if (matches) {
|
|
const _window = window;
|
|
matches = window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
}
|
|
let prop = matches;
|
|
const tmpResult = module_1639;
|
|
} else {
|
|
prop = global._REANIMATED_IS_REDUCED_MOTION;
|
|
}
|
|
return prop;
|
|
}
|
|
ReducedMotionManager.uiValue = module_1673.makeMutable(prop);
|
|
ReducedMotionManager.setEnabled = function setEnabled(jsValue) {
|
|
obj.jsValue = jsValue;
|
|
obj.uiValue.value = jsValue;
|
|
};
|
|
|
|
export { isReducedMotionEnabledInSystem };
|
|
export { ReducedMotionManager };
|