Commit d979491
remove animation from borderLayer to stop unwanted animations (#42922)
Summary:
Pull Request resolved: #42922
changelog: [fix][ios] prevent unwanted border animation
The problem: CALayer and its properties are animatable. If RN applies mutations inside an animation block, it will animate. In this particular example, it was animated because of a transition applied by the library and because we were not creating new views, but recycling views from previous screen.
This caused size of _borderLayer to change from value A to value B inside of animation block. To resolve this, call removeAllAnimations on borderLayer.
Reviewed By: cipolleschi
Differential Revision: D53566886
fbshipit-source-id: 98e0b01a9185046e1ee500665c1832060ecc88841 parent 02f163e commit d979491
File tree
1 file changed
+13
-13
lines changed- packages/react-native/React/Fabric/Mounting/ComponentViews/View
1 file changed
+13
-13
lines changedLines changed: 13 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
401 | | - | |
402 | | - | |
| 400 | + | |
403 | 401 | | |
404 | 402 | | |
405 | 403 | | |
| |||
601 | 599 | | |
602 | 600 | | |
603 | 601 | | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
| 602 | + | |
608 | 603 | | |
609 | 604 | | |
610 | 605 | | |
| |||
617 | 612 | | |
618 | 613 | | |
619 | 614 | | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
625 | 621 | | |
626 | 622 | | |
627 | 623 | | |
| |||
662 | 658 | | |
663 | 659 | | |
664 | 660 | | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
665 | 665 | | |
666 | 666 | | |
667 | 667 | | |
| |||
0 commit comments