mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-09 17:31:39 +08:00
Summary: In some cases, the size of the content view changes before we add views to the Modal. That means that the size of that view will not be set through the `onSizeChanged` method. This can result in some apps apparently freezing, since the dialog is created, but there are no actual views in it. For that reason, we still need the ModalHostShadowNode to set the size of the initial view, so that by the time the view gets added it already has the correct size. There's a new helper class so that we can reuse the modal size computation. Reviewed By: foghina Differential Revision: D3892795 fbshipit-source-id: 6a32bd7680a74d9912a21bfebb4ebd7a3c3c3e38