Android TextInput placeholder with custom font has incorrect height #31544
Labels
Component: TextInput
Related to the TextInput component.
Issue: Author Provided Repro
This issue can be reproduced in Snack or an attached project.
Description
TextInput placeholders that do not use the default android font and differ in their wrap point from the default font may be cut off. For example, if the default font does not wrap, and the custom font is slightly wider and does wrap to the next line, the placeholder will NOT reflect this wrapping, and the TextInput will only be one line.
React Native version:
Steps To Reproduce
Expected Results
Placeholder should adjust height according to its font.
Snack, code example, screenshot, or link to a repository:
https://snack.expo.io/@computerjazz/textinput-android-bug
expected behavior (in this case placeholder text is long enough that it ALSO would wrap using default font)
actual behavior (placeholder text using "serif" font wraps to a 3rd line, but if it were to use the default font it would not wrap, and as a result placeholder gets cut off):
For reference, here's the same text using default font, note that it does not wrap to a 3rd line:
The text was updated successfully, but these errors were encountered: