Fix reorder-init-list warning in RCTViewComponentView

Summary:
Changes the order of `RCTBorderColors` field designators to match their declaration order, fixing one case of `-Wreorder-init-list` when compiling the RN codebase with Xcode 12.

Changelog: [Internal]

Reviewed By: MichaReiser

Differential Revision: D23447685

fbshipit-source-id: f04a3841187f0869d2efb60e81ce075c45f27f3c
This commit is contained in:
Moti Zilberman 2020-09-01 07:30:37 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 93e7a7a70d
Коммит 345baf477c
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -340,8 +340,8 @@ static RCTCornerRadii RCTCornerRadiiFromBorderRadii(BorderRadii borderRadii)
static RCTBorderColors RCTBorderColorsFromBorderColors(BorderColors borderColors)
{
return RCTBorderColors{.left = RCTCGColorRefUnretainedFromSharedColor(borderColors.left),
.top = RCTCGColorRefUnretainedFromSharedColor(borderColors.top),
return RCTBorderColors{.top = RCTCGColorRefUnretainedFromSharedColor(borderColors.top),
.left = RCTCGColorRefUnretainedFromSharedColor(borderColors.left),
.bottom = RCTCGColorRefUnretainedFromSharedColor(borderColors.bottom),
.right = RCTCGColorRefUnretainedFromSharedColor(borderColors.right)};
}