Skip to content

Commit d57b4fa

Browse files
fkgozalimeta-codesync[bot]
authored andcommitted
Fix -Wreorder-init-list in RCTTextInputComponentView for xcodestaging (#56497)
Summary: Pull Request resolved: #56497 Reorder the fields to match the struct declaration order: text, selectionRange, contentSize, contentOffset, contentInset, eventCount, layoutMeasurement, zoomScale. Changelog: [Internal] Reviewed By: christophpurrer Differential Revision: D101560071
1 parent 68debb2 commit d57b4fa

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)