-
Notifications
You must be signed in to change notification settings - Fork 279
Paul/optimize anims #5871
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
Paul/optimize anims #5871
Conversation
| </Fade> | ||
| <EdgeAnim | ||
| style={styles.bottomButton} | ||
| enter={{ type: 'fadeIn', delay: 300 }} |
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.
Bug: Wrong animation property causes delayed button appearance
The EdgeAnim component uses delay: 300 but the original Fade component used duration={300}. These have different semantics: delay waits before starting the animation while duration controls how long the animation takes. This causes the Next button to wait 300ms before starting to fade in, then animate for the default 300ms, taking 600ms total instead of the original 300ms. The equivalent scene SweepPrivateKeySelectCryptoScene correctly uses duration: 300.
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.
Sounds valid
These anims are barely visible and incur heavy cost in an additional view per row.
702e6ec to
7d36ca4
Compare
|
/rebase |
7d36ca4 to
4c94596
Compare
Use EdgeAnim instead We lose noFadeIn prop but the animation looks fine without it.
Useless to memoize since EdgeAnim always takes children which means it's props always change.
4c94596 to
7f811af
Compare
CHANGELOG
Does this branch warrant an entry to the CHANGELOG?
Dependencies
noneRequirements
If you have made any visual changes to the GUI. Make sure you have:
Note
Replaces Fade with EdgeAnim across the app, removes list-item enter animations for performance, refactors EdgeAnim, updates types/tests, and adjusts ESLint config.
themed/Fadewithcommon/EdgeAniminConfirmContinueModal,EdgeLoginScene,MigrateWalletSelectCryptoScene,SweepPrivateKeySelectCryptoScene.themed/Fade.tsxandhooks/animations/useFadeAnimation.ts.common/EdgeAnim.tsx: export component directly, add explicit types, adjust disable logic.TransactionListSceneandthemed/WalletListSwipeable.React.FCannotations, strictercatch (unknown)handling, and minor guards.eslint.config.mjsfile lists to drop removed/relocated entries.EdgeLoginScenesnapshot to match new animation/layout.Written by Cursor Bugbot for commit 4c94596. This will update automatically on new commits. Configure here.