Dec 9, 2020
0
Level 8
React Native: trucate text if bigger than width percentage
Hi everybody, in react native having a Text component with a given width in percentages how can I trucate that text with ellipsis if the resulting text is bigger than the given width?
<Text style={{width:'50%'}}>{ dynamic.text }</Text>
Thanks in advance.
Please or to participate in this conversation.