Fix TextInput Spannable flags

Summary:
The TextInput spannables are being set wrong by Nodes. Consequently,
when you hit space after a word, anything you type is highlighted, though it
shouldn't be.

Differential Revision: D3507516
This commit is contained in:
Ahmed El-Helw
2016-07-01 15:12:57 -07:00
parent 1b77f1a372
commit 4622532ca4
6 changed files with 38 additions and 12 deletions

View File

@@ -50,7 +50,11 @@ import com.facebook.react.uimanager.annotations.ReactProp;
}
@Override
protected void performApplySpans(SpannableStringBuilder builder, int begin, int end) {
protected void performApplySpans(
SpannableStringBuilder builder,
int begin,
int end,
boolean isEditable) {
mInlineImageSpan.freeze();
builder.setSpan(
mInlineImageSpan,