Skip to content

Commit 2e93658

Browse files
fkgozalifacebook-github-bot
authored andcommitted
Fix -Wreorder-init-list in RCTTextInputComponentView for xcodestaging
Summary: Reorder the fields to match the struct declaration order: text, selectionRange, contentSize, contentOffset, contentInset, eventCount, layoutMeasurement, zoomScale. Changelog: [Internal] Differential Revision: D101560071
1 parent 5620b1b commit 2e93658

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,10 +712,10 @@ - (void)handleInputAccessoryDoneButton
712712
return {
713713
.text = RCTStringFromNSString(_backedTextInputView.attributedText.string),
714714
.selectionRange = [self _selectionRange],
715-
.eventCount = static_cast<int>(_mostRecentEventCount),
715+
.contentSize = RCTSizeFromCGSize(_backedTextInputView.contentSize),
716716
.contentOffset = RCTPointFromCGPoint(_backedTextInputView.contentOffset),
717717
.contentInset = RCTEdgeInsetsFromUIEdgeInsets(_backedTextInputView.contentInset),
718-
.contentSize = RCTSizeFromCGSize(_backedTextInputView.contentSize),
718+
.eventCount = static_cast<int>(_mostRecentEventCount),
719719
.layoutMeasurement = RCTSizeFromCGSize(_backedTextInputView.bounds.size),
720720
.zoomScale = _backedTextInputView.zoomScale,
721721
};

0 commit comments

Comments
 (0)