mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-03 09:35:11 +08:00
Summary: With our previous fix to resize the Modal on orientation change, we broke the computation of its size. The existing computation in `ModalHostShadowNode` was in fact correct, and we were overriding it from `onSizeChanged`. By computing the size of the Modal in `onSizeChanged` directly (and correctly), we fix this, and simplify code by removing the `ModalHostShadowNode`. Reviewed By: foghina Differential Revision: D3863054 fbshipit-source-id: aaf4a8881798df4d2ab1dab882a9d9dfdc0a9342