diff --git a/patches/react-native+0.76.3+030+fix-crash-when-deleting-expense.patch b/patches/react-native+0.76.3+030+fix-crash-when-deleting-expense.patch new file mode 100644 index 000000000000..7206c5564e1b --- /dev/null +++ b/patches/react-native+0.76.3+030+fix-crash-when-deleting-expense.patch @@ -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);