admin管理员组文章数量:1406937
Does anybody know how to add an ellipsis (The "..." that you usually see when a Text overflows) in a FloatingLabelInput in react native. The Text component has 2 props, numberOfLines and ellipsisSizeMode which help with this but FloatingLabelInput or TextInput have no such props and I have found no way to add a "..." in the end of the text when it overflows. Has anyone worked on a similar problem and knows a solution?
So far I have only tried to slice the text at 24 characters and then display a "..." after it but I am looking for a more dynamic approach as phone sizes and font sizes could differ.
本文标签: React native FloatingLabelInputTextInput ellipsis issueStack Overflow
版权声明:本文标题:React native FloatingLabelInputTextInput ellipsis issue - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744972037a2635292.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论