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:
David Vacca authored and Facebook GitHub Bot committed 2020-06-19 21:50:43 -07:00
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