Skip to content

Commit

Permalink
Update ReducedMotionConfig.mdx (#6598)
Browse files Browse the repository at this point in the history
<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## 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 <[email protected]>
  • Loading branch information
mzaien and piaskowyk authored Oct 16, 2024
1 parent 84d8d3a commit 4098856
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4098856

Please sign in to comment.