-
Notifications
You must be signed in to change notification settings - Fork 987
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
Enable layout animations by default #16832
Conversation
Jenkins BuildsClick to see older builds (24)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
src/react_native/reanimated.cljs
Outdated
runOnJS)] | ||
[reagent.core :as reagent] | ||
["react-native-redash" :refer (withPause)] | ||
[react-native.flat-list :as rn-flat-list] | ||
[utils.worklets.core :as worklets.core])) | ||
|
||
(enableLayoutAnimations true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
Thanks for solving it @Parveshdhull
Why don't we upgrade to reanimated v3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ulisesmac,
Thank you very much for reviewing PR. Actually upgrade is currently blocked.
88% of end-end tests have passed
Failed tests (5)Click to expandClass TestCommunityOneDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestGroupChatMultipleDeviceMergedNewUI:
Passed tests (35)Click to expandClass TestCommunityOneDeviceMerged:
Class TestActivityMultipleDevicePR:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityMultipleDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
|
Thanks @Parveshdhull, awesome work 🙌 |
d88a21a
to
fda7f17
Compare
7416702
to
cbfdbf6
Compare
cbfdbf6
to
29cd76e
Compare
29cd76e
to
ce5bfda
Compare
fixes: #16693
Summary
The issue is happening due to layout animations (used by toasts). This is a known issue and happens because layout animations are disabled by default and when toasts tried to use them, it enabled layout animations at runtime and caused this weird behavior.
Once we upgrade to reanimated v3, this change will be redundant as layout animations will be enabled by default in newer versions
Testing:
Please also test #14752
(Thank you @qoqobolo for your help in tracking issue cause)
status: ready