Set minHeight instead of minWidth for calculating the layout in RCTSurfaceRootShadowView
Set minHeight instead of minWidth for calculating the layout in RCTSurfaceRootShadowView

Summary:
Fix calculating layout in `RCTSurfaceRootShadowView` as the `minWidth` is set doubled in `calculateLayoutWithMinimumSize:maximumSize:`.

cc shergin
Closes https://github.com/facebook/react-native/pull/17203

Differential Revision: D6642437

Pulled By: shergin

fbshipit-source-id: 3483c952c9ecf0132182a156b7b916eb1e975424

javache/react-native,facebook/react-native,exponent/react-native,hoangpham95/react-native,pandiaraj44/react-native,facebook/react-native,arthuralee/react-native,hammerandchisel/react-native,exponentjs/react-native,hoangpham95/react-native,myntra/react-native,javache/react-native,hammerandchisel/react-native,janicduplessis/react-native,javache/react-native,hoangpham95/react-native,janicduplessis/react-native,javache/react-native,hammerandchisel/react-native,ptmt/react-native-macos,hoangpham95/react-native,hoastoolshop/react-native,jevakallio/react-native,hoastoolshop/react-native,ptmt/react-native-macos,facebook/react-native,facebook/react-native,dikaiosune/react-native,janicduplessis/react-native,dikaiosune/react-native,hoastoolshop/react-native,ptmt/react-native-macos,exponent/react-native,hoastoolshop/react-native,jevakallio/react-native,facebook/react-native,arthuralee/react-native,arthuralee/react-native,janicduplessis/react-native,javache/react-native,facebook/react-native,pandiaraj44/react-native,exponent/react-native,exponent/react-native,jevakallio/react-native,hoangpham95/react-native,dikaiosune/react-native,hoastoolshop/react-native,dikaiosune/react-native,pandiaraj44/react-native,ptmt/react-native-macos,javache/react-native,myntra/react-native,myntra/react-native,janicduplessis/react-native,hoastoolshop/react-native,myntra/react-native,jevakallio/react-native,jevakallio/react-native,javache/react-native,janicduplessis/react-native,pandiaraj44/react-native,ptmt/react-native-macos,hoangpham95/react-native,hammerandchisel/react-native,facebook/react-native,ptmt/react-native-macos,hammerandchisel/react-native,exponent/react-native,facebook/react-native,ptmt/react-native-macos,ptmt/react-native-macos,exponentjs/react-native,dikaiosune/react-native,exponentjs/react-native,javache/react-native,exponentjs/react-native,janicduplessis/react-native,exponentjs/react-native,exponent/react-native,myntra/react-native,myntra/react-native,pandiaraj44/react-native,pandiaraj44/react-native,exponentjs/react-native,pandiaraj44/react-native,jevakallio/react-native,janicduplessis/react-native,myntra/react-native,hoastoolshop/react-native,arthuralee/react-native,exponent/react-native,hoastoolshop/react-native,hammerandchisel/react-native,exponentjs/react-native,myntra/react-native,jevakallio/react-native,dikaiosune/react-native,jevakallio/react-native,exponentjs/react-native,jevakallio/react-native,dikaiosune/react-native,hoangpham95/react-native,arthuralee/react-native,facebook/react-native,myntra/react-native,hoangpham95/react-native,hammerandchisel/react-native,exponent/react-native,pandiaraj44/react-native,dikaiosune/react-native,hammerandchisel/react-native,javache/react-native