From 4098856be727dabe527db2ef0a2a7e7bdea94468 Mon Sep 17 00:00:00 2001 From: Abdullah Mzaien Date: Wed, 16 Oct 2024 12:36:41 +0300 Subject: [PATCH] Update ReducedMotionConfig.mdx (#6598) ## Summary Adding warning that ReducedMotionConfig is applied globally, as I was checking and docs and did not know until I checked the [pr](https://github.com/software-mansion/react-native-reanimated/blob/0bd65b35bbe33c69590e4bfcb836f618ff066534/packages/react-native-reanimated/src/component/ReducedMotionConfig.tsx) this component was introduced in ## Test plan check the website after it gets deployed --------- Co-authored-by: Krzysztof Piaskowy --- .../docs-reanimated/docs/components/ReducedMotionConfig.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/docs-reanimated/docs/components/ReducedMotionConfig.mdx b/packages/docs-reanimated/docs/components/ReducedMotionConfig.mdx index a6f00d621b09..cafa3bac2b4d 100644 --- a/packages/docs-reanimated/docs/components/ReducedMotionConfig.mdx +++ b/packages/docs-reanimated/docs/components/ReducedMotionConfig.mdx @@ -7,6 +7,12 @@ sidebar_position: 1 `ReducedMotionConfig` component let's you change behavior in response to the device's reduced motion accessibility setting. By default it disables all animation when the reduced motion is enabled on a device. You can adjust it for your specific use case. You can learn more about [Accessibility](/docs/guides/accessibility) and [`useReducedMotion`](/docs/device/useReducedMotion) in Reanimated. +:::caution + +The new configuration will be applied globally across the entire application. + +::: + ## Reference ```javascript