UNPKG

528 BPlain TextView Raw
1'use strict';
2import { isReducedMotion } from '../PlatformChecker';
3
4const IS_REDUCED_MOTION = isReducedMotion();
5
6/**
7 * Lets you query the reduced motion system setting.
8 *
9 * Changing the reduced motion system setting doesn't cause your components to rerender.
10 *
11 * @returns A boolean indicating whether the reduced motion setting was enabled when the app started.
12 * @see https://docs.swmansion.com/react-native-reanimated/docs/device/useReducedMotion
13 */
14export function useReducedMotion() {
15 return IS_REDUCED_MOTION;
16}