Skip to content

docs: clarify UIManager LayoutAnimation scope and New Architecture behaviour. - #5262

Merged
Simek merged 1 commit into
react:mainfrom
supunyasanthaofficial:fix/clarify-layoutanimation-uimanager
Oct 6, 2026
Merged

Simek merged 1 commit into
react:mainfrom
supunyasanthaofficial:fix/clarify-layoutanimation-uimanager

Conversation

@supunyasanthaofficial

Copy link
Copy Markdown
Contributor

Fixes #889

Summary

Clarifies the use of UIManager.setLayoutAnimationEnabledExperimental in docs/layoutanimation.md:

  • Clarifies that on Android with the Legacy Architecture, this flag enables layout animations globally and only needs to be called once (for example, in the app's root entry file index.js or root component) before triggering layout animations, rather than per component.

  • Adds a note clarifying that on the New Architecture, layout animations work automatically and calling setLayoutAnimationEnabledExperimental is unnecessary (it is a no-op).

Test Plan

- Verified formatting and linting pass (`npx eslint docs/layoutanimation.md`).
- Verified documentation builds successfully with Docusaurus.

@meta-cla

meta-cla Bot commented Oct 6, 2026

Copy link
Copy Markdown

Hi @supunyasanthaofficial!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@meta-cla

meta-cla Bot commented Oct 6, 2026

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@meta-cla meta-cla Bot added the CLA Signed label Oct 6, 2026

@Simek Simek left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @supunyasanthaofficial, thanks for the update on this! 👍

Since you edited only the docs file the change would be visible only in "Next" docs and in future React Native versioned docs. If you want this change to apply to older, already present versioned docs, you would need to backport your changes:

Preview

Screenshot 2026-10-06 141001

@Simek
Simek merged commit f99c181 into react:main Oct 6, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify use of UIManager for LayoutAnimation on Android

2 participants