Fix typo in RCTSurfaceHostingView
Summary: Fix typo in RCTSurfaceHostingView (minumumSize -> minimumSize) Closes https://github.com/facebook/react-native/pull/17235 Differential Revision: D6585719 Pulled By: hramos fbshipit-source-id: bfb18015f48bc8ab161945d09125c27d29738ede
This commit is contained in:
parent
8c8944c10f
commit
d021dd25da
|
@ -84,11 +84,11 @@ RCT_NOT_IMPLEMENTED(- (nullable instancetype)initWithCoder:(NSCoder *)coder)
|
|||
return CGSizeZero;
|
||||
}
|
||||
|
||||
CGSize minumumSize = CGSizeZero;
|
||||
CGSize minimumSize = CGSizeZero;
|
||||
CGSize maximumSize = CGSizeMake(INFINITY, INFINITY);
|
||||
|
||||
if (_sizeMeasureMode & RCTSurfaceSizeMeasureModeWidthExact) {
|
||||
minumumSize.width = size.width;
|
||||
minimumSize.width = size.width;
|
||||
maximumSize.width = size.width;
|
||||
}
|
||||
else if (_sizeMeasureMode & RCTSurfaceSizeMeasureModeWidthAtMost) {
|
||||
|
@ -96,14 +96,14 @@ RCT_NOT_IMPLEMENTED(- (nullable instancetype)initWithCoder:(NSCoder *)coder)
|
|||
}
|
||||
|
||||
if (_sizeMeasureMode & RCTSurfaceSizeMeasureModeHeightExact) {
|
||||
minumumSize.height = size.height;
|
||||
minimumSize.height = size.height;
|
||||
maximumSize.height = size.height;
|
||||
}
|
||||
else if (_sizeMeasureMode & RCTSurfaceSizeMeasureModeHeightAtMost) {
|
||||
maximumSize.height = size.height;
|
||||
}
|
||||
|
||||
return [_surface sizeThatFitsMinimumSize:minumumSize
|
||||
return [_surface sizeThatFitsMinimumSize:minimumSize
|
||||
maximumSize:maximumSize];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue