Skip to content

Commit 2b8c3a6

Browse files
sammy-SCfacebook-github-bot
authored andcommitted
fix logging build for LayoutAnimation (#54618)
Summary: changelog: [internal] When LAYOUT_ANIMATION_VERBOSE_LOGGING is enabled, build would fail. This fixes it Reviewed By: javache Differential Revision: D87474448
1 parent eb13eba commit 2b8c3a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-native/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static std::string GetMutationInstructionString(
3939
? mutation.newChildShadowView.tag
4040
: mutation.oldChildShadowView.tag;
4141
return getDebugName(mutation) + " [" + std::to_string(tag) + "]->[" +
42-
std::to_string(mutation.parentShadowView.tag) + "] @" +
42+
std::to_string(mutation.parentTag) + "] @" +
4343
std::to_string(mutation.index);
4444
}
4545

@@ -1162,7 +1162,7 @@ void LayoutAnimationKeyFrameManager::queueFinalMutationsForCompletedKeyFrame(
11621162
const AnimationKeyFrame& keyframe,
11631163
ShadowViewMutation::List& mutationsList,
11641164
bool interrupted,
1165-
const std::string& /*logPrefix*/) const {
1165+
[[maybe_unused]] const std::string& logPrefix) const {
11661166
if (!keyframe.finalMutationsForKeyFrame.empty()) {
11671167
// TODO: modularize this segment, it is repeated 2x in KeyFrameManager
11681168
// as well.

0 commit comments

Comments
 (0)