mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
5305f3b68e
Summary: OnLayoutEvent was incorrectly dispatching x/y coordinates relative to native View instead of relative to parent. This was causing issues in many cases, such as when Node was mounting to a View, in which case x/y would always be 0. This diff is fixing it. This diff also caches last OnLayoutEvent to avoid dispatching the event on every layout even when layout didn't chance. Reviewed By: ahmedre Differential Revision: D2955087
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.