diff --git a/packages/react-native/ReactCommon/react/renderer/components/view/BaseTouch.cpp b/packages/react-native/ReactCommon/react/renderer/components/view/BaseTouch.cpp index 2f67bcf75f80..52f5c5972ade 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/view/BaseTouch.cpp +++ b/packages/react-native/ReactCommon/react/renderer/components/view/BaseTouch.cpp @@ -49,12 +49,12 @@ std::vector getDebugProps( {"target", getDebugDescription(touch.target, options)}, {"force", getDebugDescription(touch.force, options)}, {"timestamp", getDebugDescription(touch.timestamp, options)}, -#if TARGET_OS_SX // [macOS - {"button", getDebugDescription(touch.button, options)}, - {"altKey", getDebugDescription(touch.altKey, options)}, - {"ctrlKey", getDebugDescription(touch.ctrlKey, options)}, - {"shiftKey", getDebugDescription(touch.shiftKey, options)}, - {"metaKey", getDebugDescription(touch.metaKey, options)}, +#if TARGET_OS_OSX // [macOS + {"button", getDebugDescription(touch.button, options)}, + {"altKey", getDebugDescription(touch.altKey, options)}, + {"ctrlKey", getDebugDescription(touch.ctrlKey, options)}, + {"shiftKey", getDebugDescription(touch.shiftKey, options)}, + {"metaKey", getDebugDescription(touch.metaKey, options)}, #endif // macOS] }; }