From d021dd25da92d84c62c9a77049bb798e3b891447 Mon Sep 17 00:00:00 2001 From: Michael Schneider Date: Fri, 15 Dec 2017 17:20:01 -0800 Subject: [PATCH] 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 --- .../Surface/SurfaceHostingView/RCTSurfaceHostingView.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm b/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm index 8f5c20e85..5d55f62a4 100644 --- a/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm +++ b/React/Base/Surface/SurfaceHostingView/RCTSurfaceHostingView.mm @@ -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]; }