mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-19 21:41:52 +08:00
Summary: Everything (but Views) are drawn using AbstractDrawCommand (or its derivative, like DrawBorder or DrawBackgroundColor) and supports clipping properly. Views however are drawn using an assumption that Android will clip them manually. This is however not always true. One example is if an element A mounts to a View, and its parent B doesn't but has overflow: hidden and thus should clip the child. There are 2 ways to fix this: - pop every element that has overflow: hidden to its own View. In this case, its children will always be correctly clipped. This is however very inefficient, especially if overflow: hidden is default (which it is!) which means that almost every React element must be backed by an Android View. - add clipping information to DrawView, similar to how AbstractDrawCommand has it. This diff implements the latter approach. Reviewed By: ahmedre Differential Revision: D2792375
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.