Fix layout MountItem logging

Summary:
After. D38153924 (https://github.com/facebook/react-native/commit/e24ce708abffee8ec4521ba8162ea8964eb4429f), layout mount items have 7 int arguments but the logger only pulls out and displays 6, which leads to the following exception: "Caught exception trying to print java.lang.IllegalArgumentException: Invalid type argument to IntBufferBatchMountItem"

Changelog: [Internal]

Created from CodeHub with https://fburl.com/edit-in-codehub

Differential Revision: D38472664

fbshipit-source-id: 1583a5514c2ab662eaf5c4ce4bf33c958cb05282
This commit is contained in:
Joshua Gross
2022-08-05 17:27:36 -07:00
committed by Facebook GitHub Bot
parent 39fb2cccb2
commit 9ac0c01d8c
@@ -247,11 +247,13 @@ public class IntBufferBatchMountItem implements MountItem {
: "<hidden>";
s.append(String.format("UPDATE STATE [%d]: %s\n", mIntBuffer[i++], stateString));
} else if (type == INSTRUCTION_UPDATE_LAYOUT) {
int reactTag = mIntBuffer[i++];
int parentTag = mIntBuffer[i++];
s.append(
String.format(
"UPDATE LAYOUT [%d]: x:%d y:%d w:%d h:%d displayType:%d\n",
mIntBuffer[i++],
mIntBuffer[i++],
"UPDATE LAYOUT [%d]->[%d]: x:%d y:%d w:%d h:%d displayType:%d\n",
parentTag,
reactTag,
mIntBuffer[i++],
mIntBuffer[i++],
mIntBuffer[i++],