UNPKG

react-native-reanimated

Version:

More powerful alternative to Animated library for React Native.

17 lines (14 loc) 528 B
'use strict'; import { isReducedMotion } from '../PlatformChecker'; const IS_REDUCED_MOTION = isReducedMotion(); /** * Lets you query the reduced motion system setting. * * Changing the reduced motion system setting doesn't cause your components to rerender. * * @returns A boolean indicating whether the reduced motion setting was enabled when the app started. * @see https://docs.swmansion.com/react-native-reanimated/docs/device/useReducedMotion */ export function useReducedMotion() { return IS_REDUCED_MOTION; }