Fix ScrollEvent DebugStringCovertible (#49029)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/49029

This was never being compiled, because we didn't import the header that set `RN_DEBUG_STRING_CONVERTIBLE`

Will look at enabling `-Wundef` to catch these.

Changelog: [Internal]

Reviewed By: sammy-SC

Differential Revision: D68797482

fbshipit-source-id: 6a01192c799903b6f956f9b0acea94bd93183f3b
This commit is contained in:
Pieter De Baets authored and Facebook GitHub Bot committed 2025-01-29 05:05:04 -08:00
1 parent 6307fe869f
commit 90c6f7eab8
3 files changed
+3 -2

No files matched your search

@@ -124,7 +124,7 @@ std::vector<DebugStringConvertibleObject> getDebugProps(
{"contentInset", getDebugDescription(scrollEvent.contentInset, options)},
{"contentSize", getDebugDescription(scrollEvent.contentSize, options)},
{"layoutMeasurement",
getDebugDescription(scrollEvent.layoutMeasurement, options)},
getDebugDescription(scrollEvent.containerSize, options)},
{"zoomScale", getDebugDescription(scrollEvent.zoomScale, options)},
{"timestamp", getDebugDescription(scrollEvent.timestamp, options)}};
}
@@ -9,6 +9,7 @@
#include <folly/dynamic.h>
#include <react/renderer/core/EventPayload.h>
#include <react/renderer/debug/DebugStringConvertible.h>
#include <react/renderer/graphics/RectangleEdges.h>
#include <react/renderer/graphics/Size.h>
@@ -14,7 +14,7 @@
#include <unordered_set>
#include <vector>
#include "flags.h"
#include <react/renderer/debug/flags.h>
namespace facebook::react {