mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Refactor Text input state
Summary: This diff refactors the theme management for text input in order to avoid extra state updates. changelog:[Internal] Reviewed By: JoshuaGross Differential Revision: D22149754 fbshipit-source-id: 8a6dbe63c8d532986dbf785c7b16323e0a980669
This commit is contained in:
1 parent
a7860b64d0
commit
8cbbd93c40
3 files changed
+13
-75
No files matched your search
@@ -21,7 +21,6 @@ folly::dynamic AndroidTextInputState::getDynamic() const {
|
||||
newState["attributedString"] = toDynamic(attributedString);
|
||||
newState["paragraphAttributes"] = toDynamic(paragraphAttributes);
|
||||
newState["hash"] = newState["attributedString"]["hash"];
|
||||
newState["hasThemeData"] = !isnan(defaultThemePaddingStart);
|
||||
return newState;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user