mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-15 17:28:33 +08:00
Summary: Instead of using measure specs to set certain yoga properties on the root node (like max width, auto width, specific width), use yoga's calculateLayout(width, height) instead. The measure specs will be stored in the shadow node. This allows us to remove duplicated code that processes the measure specs and allows us to remove other logic like the enableLayoutCalculation() method. This diff also removes MeasureSpecProvider. MeasureSpecProvider was originally introduced to pass previously measured view measure specs to the initial creation of the root shadow node, but it turns out that this is unnecessary. We can update the root layout specs from the root view instead. Reviewed By: mdvacca Differential Revision: D9729744 fbshipit-source-id: 79b0b27ca879758f5dc3fc7cc8a0d38856a6cc79
Building React Native for Android
See the docs on the website.
Running tests
When you submit a pull request CircleCI will automatically run all tests. To run tests locally, see Testing.