You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a443ea4
Browse filesBrowse the repository at this point in the historyBrowse files
Make iOS Color default constructor constexpr (#59060)
Summary:
Pull Request resolved: #59060
`UndefinedColor` in the iOS `HostPlatformColor.h` is a namespace-scope `static const Color` built with a non-`constexpr` `Color()`, so every Objective-C++ file that includes the header runs a static initializer before `main`. Make `Color()` `constexpr` (and zero-initialize `uiColorHashValue_`) so it is constant-initialized instead.
Changelog: [Internal]
Reviewed By: cortinico
Differential Revision: D125189249
fbshipit-source-id: 4a2e13df252da37646073bca69b98cb975cbb019
Copy file name to clipboardExpand all lines: packages/react-native/ReactCommon/react/renderer/graphics/platform/ios/react/renderer/graphics/HostPlatformColor.h
0 commit comments