Fix -Wreorder-init-list in RCTTextInputComponentView for xcodestaging (#56497)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/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

fbshipit-source-id: 462db623b62ed2cf01481c9406a8c750ff1268bc
This commit is contained in:
Kevin Gozali authored and meta-codesync[bot] committed 2026-04-19 23:07:02 -07:00
1 parent 68debb27ff
commit 6779f6c146
1 file changed
+2 -2
@@ -712,10 +712,10 @@ static NSSet<NSNumber *> *returnKeyTypesSet;
return {
.text = RCTStringFromNSString(_backedTextInputView.attributedText.string),
.selectionRange = [self _selectionRange],
.eventCount = static_cast<int>(_mostRecentEventCount),
.contentSize = RCTSizeFromCGSize(_backedTextInputView.contentSize),
.contentOffset = RCTPointFromCGPoint(_backedTextInputView.contentOffset),
.contentInset = RCTEdgeInsetsFromUIEdgeInsets(_backedTextInputView.contentInset),
.contentSize = RCTSizeFromCGSize(_backedTextInputView.contentSize),
.eventCount = static_cast<int>(_mostRecentEventCount),
.layoutMeasurement = RCTSizeFromCGSize(_backedTextInputView.bounds.size),
.zoomScale = _backedTextInputView.zoomScale,
};