Skip to content

Commit

Permalink
End transition before reparenting views
Browse files Browse the repository at this point in the history
  • Loading branch information
j-piasecki committed Dec 11, 2024
1 parent 0d0bcf5 commit 3998e21
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java b/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java
index 887dc73..f881753 100644
--- a/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java
+++ b/node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/fabric/mounting/SurfaceMountingManager.java
@@ -404,6 +404,7 @@ public class SurfaceMountingManager {
// thus prevent the RemoveDeleteTree worker from deleting this
// View in the future.
if (viewParent instanceof ViewGroup) {
+ ((ViewGroup) viewParent).endViewTransition(view);
((ViewGroup) viewParent).removeView(view);
}
mErroneouslyReaddedReactTags.add(tag);

0 comments on commit 3998e21

Please sign in to comment.