react-native icon indicating copy to clipboard operation
react-native copied to clipboard

[Android] TextInput placeholder font family is incorrect when secureTextEntry={true}

Open haikov opened this issue 10 years ago • 10 comments

RN 20.0 (Android only)

When I use secureTextEntry={true} for TextInput, the font-family for placeholder is always default:

input-bug

haikov avatar Feb 25 '16 13:02 haikov

I'm seeing the same issue.

lynndylanhurley avatar Mar 02 '16 04:03 lynndylanhurley

got the same issue.

eric1iu avatar Mar 05 '16 00:03 eric1iu

I also have the same issue

Raz0rwire avatar Mar 07 '16 06:03 Raz0rwire

Same issue on all Android versions I tested

mmazzarolo avatar Mar 07 '16 07:03 mmazzarolo

I did find this:

Tip: By default, when you set an EditText element to use the "textPassword" input type, the font family is set to monospace, so you should change its font family to "sans-serif" so that both text fields use a matching font style.

Here: http://developer.android.com/guide/topics/ui/dialogs.html#CustomLayout but I'm not sure how to go about fixing it.. @christopherdro

Raz0rwire avatar Mar 11 '16 13:03 Raz0rwire

@Raz0rwire In native android the default behaviour is as you describe, but setting the font family works to override the default. What seems to be happening here is that the override is not being applied.

danhawkes avatar Mar 11 '16 14:03 danhawkes

Related: https://github.com/facebook/react-native/issues/4435

christopherdro avatar Mar 11 '16 15:03 christopherdro

It will be fixed by PR #6564.

charpeni avatar Mar 22 '16 01:03 charpeni

@facebook-github-bot close

charpeni avatar Mar 22 '16 01:03 charpeni

@charpeni tells me to close this issue. If you think it should still be opened let us know why.

facebook-github-bot avatar Mar 22 '16 01:03 facebook-github-bot