mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
9498f22439
Summary: In D2980358, alignment was implemented for nodes. This unfortunately introduced a bug, which is that when we have a BoringLayout that is set to ALIGN_CENTER, it can't be seen. This is a result of the fact that the width passed in to BoringLayout is Integer.MAX_VALUE. Since measure has already been called at this point, we can just pass the layout's width as the width of the BoringLayout. Reviewed By: sriramramani Differential Revision: D3004971