Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ CommitStatus ShadowTree::tryCommit(
getShadowTreeCommitSourceName(commitOptions.source));

auto isReactBranch = ReactNativeFeatureFlags::enableFabricCommitBranching() &&
commitOptions.source == CommitSource::React;
(commitOptions.source == CommitSource::React ||
commitOptions.source == CommitSource::AnimationEndSync);

// Commits on the JS branch are never synchronous.
react_native_assert(!isReactBranch || !commitOptions.mountSynchronously);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ void updateMountedFlag(
// Runtime shadow node references are updated during the React revision
// commits so that JS can access layout data from the merged tree.
bool shouldUpdateRuntimeReference =
(commitSource == ShadowTreeCommitSource::React &&
((commitSource == ShadowTreeCommitSource::React ||
commitSource == ShadowTreeCommitSource::AnimationEndSync) &&
ReactNativeFeatureFlags::updateRuntimeShadowNodeReferencesOnCommit()) ||
(ReactNativeFeatureFlags::
updateRuntimeShadowNodeReferencesOnCommitThread() &&
Expand Down
Loading