Skip to content

Commit

Permalink
Merge pull request Expensify#40243 from ikevin127/fix/40081
Browse files Browse the repository at this point in the history
[Fabric] iOS - Stretched border animations between screen transitions
  • Loading branch information
Beamanator authored Apr 22, 2024
2 parents 94147d4 + ce96fdd commit 1b91125
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/node_modules/react-native/React/Fabric/Mounting/RCTMountingManager.mm b/node_modules/react-native/React/Fabric/Mounting/RCTMountingManager.mm
index b4cfb3d..7aa00e5 100644
--- a/node_modules/react-native/React/Fabric/Mounting/RCTMountingManager.mm
+++ b/node_modules/react-native/React/Fabric/Mounting/RCTMountingManager.mm
@@ -49,6 +49,9 @@ static void RCTPerformMountInstructions(
{
SystraceSection s("RCTPerformMountInstructions");

+ [CATransaction begin];
+ [CATransaction setValue:(id)kCFBooleanTrue forKey:kCATransactionDisableActions];
+
for (const auto &mutation : mutations) {
switch (mutation.type) {
case ShadowViewMutation::Create: {
@@ -147,6 +150,7 @@ static void RCTPerformMountInstructions(
}
}
}
+ [CATransaction commit];
}

@implementation RCTMountingManager {

0 comments on commit 1b91125

Please sign in to comment.