mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
0bae47434e
Summary: When the TextInput is updated on the Java side, make sure C++ State gets updated. We do this by making sure that the AttributedString data-structured in mirrored in Java and in C++. In practice, the AttributedString is copied into Java a few times during initialization, and then after then, 99% of the time Java is writing without receiving updates from C++. This means that we should optimize the Java-to-C++ update path most aggressively in the future. However, it turns out that for now, at least, we can't reuse NativeWritableMaps/NativeWritableArrays because they're consumed on the C++ side and can't be modified after that. This is a perf improvement for the future. This allows us the user to edit any fragments, and the changes will flow through C++ State. This also allows us to edit across multiple Fragments. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D18785960 fbshipit-source-id: 97b283ec411081eca4d2d7a4cce2b31b5e237c42
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.