Skip to content

Commit 5c7454a

Browse files
Saadnajmiclaude
andauthored
fix: add missing <string> and <vector> includes to HostPlatformColor.h (#2889)
## Summary - `HostPlatformColor.h` uses `std::string` (in `ColorWithSystemEffect` struct and `createSemanticColor` declaration) and `std::vector<std::string>` but did not include the `<string>` or `<vector>` headers. - This causes build failures when this header is included before any other header that transitively pulls in those standard library headers (e.g. via `PointerHoverTracker.cpp`). - Adds the missing `#include <string>` and `#include <vector>`. ## Test plan - [x] Verified the build error is resolved with this change 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a885ae6 commit 5c7454a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics

packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/HostPlatformColor.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
#include <react/renderer/graphics/ColorComponents.h>
1111
#include <react/utils/hash_combine.h>
1212
#include <cmath>
13+
#include <string>
14+
#include <vector>
1315

1416
namespace facebook::react {
1517

0 commit comments

Comments
 (0)