From eb39a07e26ceb89fd0ac800344de5c9ae05cd6a9 Mon Sep 17 00:00:00 2001 From: Abdullah Mzaien Date: Tue, 15 Oct 2024 10:42:33 +0300 Subject: [PATCH 1/2] Update ReducedMotionConfig.mdx Adding warning that ReducedMotionConfig is applied globally --- .../docs/components/ReducedMotionConfig.mdx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/docs-reanimated/docs/components/ReducedMotionConfig.mdx b/packages/docs-reanimated/docs/components/ReducedMotionConfig.mdx index a6f00d621b0..ad30d65238c 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 @@ -49,6 +55,7 @@ A parameter that determines how animations should behave in response to the devi - `ReduceMotion.Always` - With this setting, the animation is consistently disabled, regardless of the device's accessibility configuration. - `ReduceMotion.Never` - This option ensures that the animation remains enabled at all times. + ## Example import ReducedMotionConfig from '@site/src/examples/ReducedMotionConfig'; From 76414e7175d175280804b0cf449742e7b4f93412 Mon Sep 17 00:00:00 2001 From: Krzysztof Piaskowy Date: Wed, 16 Oct 2024 11:21:10 +0200 Subject: [PATCH 2/2] remove new line --- packages/docs-reanimated/docs/components/ReducedMotionConfig.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/docs-reanimated/docs/components/ReducedMotionConfig.mdx b/packages/docs-reanimated/docs/components/ReducedMotionConfig.mdx index ad30d65238c..cafa3bac2b4 100644 --- a/packages/docs-reanimated/docs/components/ReducedMotionConfig.mdx +++ b/packages/docs-reanimated/docs/components/ReducedMotionConfig.mdx @@ -55,7 +55,6 @@ A parameter that determines how animations should behave in response to the devi - `ReduceMotion.Always` - With this setting, the animation is consistently disabled, regardless of the device's accessibility configuration. - `ReduceMotion.Never` - This option ensures that the animation remains enabled at all times. - ## Example import ReducedMotionConfig from '@site/src/examples/ReducedMotionConfig';