mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Fabric: Remove designated initializer in LayoutMetrics.h (#23758)
Summary: This pull request removes the designated initializer in `LayoutMetrics.h`. This will help improve the portability of this file. [General] [Changed] - Fabric: Remove designated initializer in LayoutMetrics.h Pull Request resolved: https://github.com/facebook/react-native/pull/23758 Differential Revision: D14320526 Pulled By: shergin fbshipit-source-id: 076ad389d0985d5213b521a2ffaca4ca7ae31599
This commit is contained in:
committed by
Facebook Github Bot
parent
d2153fc58d
commit
50d095ce32
@@ -57,7 +57,10 @@ struct LayoutMetrics {
|
||||
* Represents some undefined, not-yet-computed or meaningless value of
|
||||
* `LayoutMetrics` type.
|
||||
*/
|
||||
static const LayoutMetrics EmptyLayoutMetrics = {.frame = {.size = {-1, -1}}};
|
||||
static const LayoutMetrics EmptyLayoutMetrics = {/* .frame = */ {
|
||||
/* .origin = */ {0, 0},
|
||||
/* .size = */ {-1, -1},
|
||||
}};
|
||||
|
||||
} // namespace react
|
||||
} // namespace facebook
|
||||
|
||||
Reference in New Issue
Block a user