mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-23 12:07:02 +08:00
Summary: With nodes, it's possible for a touchable region to not be explicitly mounted to a View. To work around this (and allow the region to be the handler of the touch event), FlatViewGroup intercepts touch events when the touch lies within any of the virtual NodeRegions. This can sometimes be wrong - the canonical example is when touch starts outside of a particular FlatViewGroup (so someone else, for example a sibling) intercepts the touch event, and then the person moves over a different FlatViewGroup, causing it to intercept the touch event when it shouldn't. To fix this, we only allow intercepting touch events due to NodeRegions on the down event. Reviewed By: astreet Differential Revision: D3160152
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.