Minor code improvements for RCTTextInput

Summary: @public Expose hasUnseenUpdates in ReactShadowNode. Various text input cleanup and fixes.

Differential Revision: D2975870
This commit is contained in:
Ahmed El-Helw
2016-02-29 16:42:21 -08:00
parent df382e986c
commit 75117fc91a
5 changed files with 23 additions and 33 deletions

View File

@@ -13,7 +13,6 @@ import javax.annotation.Nullable;
import android.text.BoringLayout;
import android.text.Layout;
import android.text.SpannableStringBuilder;
import android.text.StaticLayout;
import android.text.TextPaint;
import android.text.TextUtils;
@@ -275,16 +274,6 @@ import com.facebook.react.uimanager.annotations.ReactProp;
notifyChanged(false);
}
/**
* Returns a new CharSequence that includes all the text and styling information to create Layout.
*/
private CharSequence getText() {
SpannableStringBuilder sb = new SpannableStringBuilder();
collectText(sb);
applySpans(sb);
return sb;
}
/**
* Returns measured line height according to an includePadding flag.
*/