diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputLocalData.java b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputLocalData.java index ce7b2725b..a91d72f42 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputLocalData.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputLocalData.java @@ -21,11 +21,13 @@ public final class ReactTextInputLocalData { private final int mMaxLines; private final int mInputType; private final int mBreakStrategy; + private final CharSequence mPlaceholder; public ReactTextInputLocalData(EditText editText) { mText = new SpannableStringBuilder(editText.getText()); mTextSize = editText.getTextSize(); mInputType = editText.getInputType(); + mPlaceholder = editText.getHint(); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { mMinLines = editText.getMinLines(); @@ -48,8 +50,9 @@ public final class ReactTextInputLocalData { editText.setMinLines(mMinLines); editText.setMaxLines(mMaxLines); editText.setInputType(mInputType); + editText.setHint(mPlaceholder); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { editText.setBreakStrategy(mBreakStrategy); } } -} +} \ No newline at end of file