Skip to content

Commit 0174e8e

Browse files
bartlomiejbloniarzkasperski95
authored andcommitted
Fix android
1 parent b4e30a4 commit 0174e8e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/react-native-reanimated/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxy_Experimental.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,10 @@ void LayoutAnimationsProxy_Experimental::updateLightTree(
198198
entering_.push_back(node);
199199
filteredMutations.push_back(mutation);
200200
} else if (sharedTransitionManager_->tagToName_.contains(tag) && isInsideInactiveSETBoundary(node)) {
201+
filteredMutations.push_back(mutation);
201202
auto hiddenView = cloneViewWithoutOpacity(mutation.newChildShadowView, propsParserContext);
202203
filteredMutations.push_back(
203-
ShadowViewMutation::InsertMutation(mutation.parentTag, hiddenView, mutation.index));
204+
ShadowViewMutation::UpdateMutation(mutation.newChildShadowView, hiddenView, mutation.parentTag));
204205
} else {
205206
filteredMutations.push_back(mutation);
206207
}
@@ -576,6 +577,8 @@ ShadowView LayoutAnimationsProxy_Experimental::cloneViewWithoutOpacity(
576577
const folly::dynamic opacity = folly::dynamic::object("opacity", 0);
577578
auto newProps =
578579
getComponentDescriptorForShadowView(newView).cloneProps(propsParserContext, newView.props, RawProps(opacity));
580+
auto viewProps = std::const_pointer_cast<ViewProps>(std::static_pointer_cast<const ViewProps>(newProps));
581+
viewProps->opacity = 0;
579582
newView.props = newProps;
580583
return newView;
581584
}

0 commit comments

Comments
 (0)