Skip to content

Commit fc23784

Browse files
rcaferatiFacebook Github Bot
authored and
Facebook Github Bot
committed
Fix LayoutAnimation delete scaleXY animation
Summary: This fix the issue #11066. It's more a workaround but it fixes the scaling down animation on component unmount using LayoutAnimation. ![scale_test](https://cloud.githubusercontent.com/assets/8358797/20537196/16f7ff24-b0e4-11e6-8870-6525466017f2.gif) Closes #11073 Differential Revision: D4226704 fbshipit-source-id: 64c7663411cc5e703c3ae8a6d3d4de0f0bcf6c96
1 parent f2a46b1 commit fc23784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

React/Modules/RCTUIManager.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ - (void)_removeChildren:(NSArray<UIView *> *)children
816816
NSString *property = deleteAnimation.property;
817817
[deleteAnimation performAnimations:^{
818818
if ([property isEqualToString:@"scaleXY"]) {
819-
removedChild.layer.transform = CATransform3DMakeScale(0, 0, 0);
819+
removedChild.layer.transform = CATransform3DMakeScale(0.001, 0.001, 0.001);
820820
} else if ([property isEqualToString:@"opacity"]) {
821821
removedChild.layer.opacity = 0.0;
822822
} else {

0 commit comments

Comments
 (0)