diff --git a/packages/react-native/ReactCommon/react/renderer/mounting/Differentiator.cpp b/packages/react-native/ReactCommon/react/renderer/mounting/Differentiator.cpp index 001238d6960..611180e6a20 100644 --- a/packages/react-native/ReactCommon/react/renderer/mounting/Differentiator.cpp +++ b/packages/react-native/ReactCommon/react/renderer/mounting/Differentiator.cpp @@ -126,6 +126,8 @@ static void calculateShadowViewMutations( const CullingContext& oldCullingContext = {}, const CullingContext& newCullingContext = {}); +namespace { + struct OrderedMutationInstructionContainer { ShadowViewMutation::List createMutations{}; ShadowViewMutation::List deleteMutations{}; @@ -136,6 +138,8 @@ struct OrderedMutationInstructionContainer { ShadowViewMutation::List destructiveDownwardMutations{}; }; +} // namespace + static void updateMatchedPairSubtrees( ViewNodePairScope& scope, OrderedMutationInstructionContainer& mutationContainer,