mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
c547757913
Summary: In D23640968 (https://github.com/facebook/react-native/commit/78b42d7fb7180102c1e8ec917dcccd2d9d4076db) I introduced a mechanism to update offsetX/offsetY whenever onMeasure/onLayout were called, to ensure that `measureInWindow` had the correct metrics and would work properly. However, now `uiManager.updateRootLayoutSpecs` gets spammed and is called too often. For example, whenever a TextInput is focused/blurred, `uiManager.updateRootLayoutSpecs` may be called 5+ times even though the measure specs/offsets may only change once. Thus, we just compare with previous values before calling into the UIManager. This should give us a very small perf improvement. Changelog: [Internal] Reviewed By: shergin Differential Revision: D24176867 fbshipit-source-id: f0dcc816e651a843607e9e5d40d8f3489894d4ba
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.