mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-09 22:43:10 +08:00
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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user