mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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:
1 parent
68debb27ff
commit
6779f6c146
1 file changed
+2
-2
+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,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user