docs: update LayoutAnimation guide for RN 0.79+ (fixes #4600)#4682
docs: update LayoutAnimation guide for RN 0.79+ (fixes #4600)#4682shiwansh22 wants to merge 1 commit intofacebook:mainfrom
Conversation
|
Hi @shiwansh22! Thank you for your pull request and welcome to our community. Action RequiredIn 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. ProcessIn 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 If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
✅ Deploy Preview for react-native ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
|
|
||
| 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+)**: |
There was a problem hiding this comment.
Can you share the react-native PR where this was changed?
There was a problem hiding this comment.
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
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.