forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TextInput: support editing completely empty TextInputs
Summary: Before this change, C++ couldn't propagate changes that updated TextInputs that were completely empty. In C++ the AttributedString cannot contain Fragments with empty text, so a completely empty TextInput would have no Fragments; this breaks the C++ state value updating infra since it relies on copying over existing fragments. Instead, now we propagate default TextAttributes and ShadowView through State, so that State updates can use them to construct new Fragments. Changelog: [Internal] Reviewed By: shergin, mdvacca Differential Revision: D18835048 fbshipit-source-id: 58ac94c5454c8610c6287b096b62199045e5879b
- Loading branch information
1 parent
0556e86
commit b9491b7
Showing
2 changed files
with
49 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters