mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-23 12:07:02 +08:00
Summary: Text in Nodes is squashed into a single DrawCommand for drawing a Boring or StaticLayout. Touch is handled using a TextNodeRegion subclass of NodeRegion that knows how to identify pieces of text inside of the DrawCommand based on spans in the text. However, we only use a TextNodeRegion on the second call for updateNodeRegion for an RCTText. If there is only one call, the NodeRegion will just be a normal one. This patch ensures that the NodeRegion for an RCTText is always a TextNodeRegion, allowing for null Layouts that are set when the DrawCommand is made. Reviewed By: astreet Differential Revision: D3291682
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.