Skip to content

docs: update LayoutAnimation guide for RN 0.79+ (fixes #4600) #4682

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shiwansh22
Copy link

Summary

The PR is an update of the documentation of the LayoutAnimation in accordance with the changes in React Native v.0.79+.

What has been changing:
Added a warning that UIManager.setLayoutAnimationEnabledExperimental(true) is not required anymore in RN 0.79+.
Kept the piece of code on account of those who used earlier releases.

Reference

According to issue #4600.

Copy link

meta-cla bot commented Jul 18, 2025

Hi @shiwansh22!

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 [email protected]. Thanks!

Copy link

netlify bot commented Jul 18, 2025

Deploy Preview for react-native ready!

Name Link
🔨 Latest commit 41a659a
🔍 Latest deploy log https://app.netlify.com/projects/react-native/deploys/687a46e19f1c440008aafa4d
😎 Deploy Preview https://deploy-preview-4682--react-native.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

meta-cla bot commented Jul 18, 2025

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 Jul 18, 2025
@@ -9,13 +9,18 @@ A common way to use this API is to call it before updating the state hook in fun

Note that in order to get this to work on **Android** you need to set the following flags via `UIManager`:

> ⚠️ **Note (React Native 0.79+)**:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you share the react-native PR where this was changed?

Copy link
Author

Choose a reason for hiding this comment

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

Hi @cortinico
Thank you for reviewing my PR!

The change was officially introduced in the React Native 0.79 release, where UIManager.setLayoutAnimationEnabledExperimental(true) is no longer required, it’s enabled by default for Android.
Unfortunately, the original PR that introduced this change appears to have been deleted or made private, and the release blog no longer includes specific mention of it. However, the change has been verified through community discussions and by observing recent versions of the RNTester app, where the call has been removed

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.

2 participants