Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import android.text.InputFilter.LengthFilter
import android.text.InputType
import android.text.Layout
import android.text.SpannableStringBuilder
import android.text.TextUtils
import android.view.Gravity
import android.view.KeyEvent
import android.view.View
Expand Down Expand Up @@ -372,6 +373,9 @@ public open class ReactTextInputManager public constructor() :
@ReactProp(name = "placeholder")
public fun setPlaceholder(view: ReactEditText, placeholder: String?) {
view.setPlaceholder(placeholder)
if (view.stagedInputType != InputType.TYPE_TEXT_FLAG_MULTI_LINE) {
view.setEllipsize(TextUtils.TruncateAt.END);
}
}

@ReactProp(name = "placeholderTextColor", customType = "Color")
Expand Down