Gabotronix's avatar

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.

0 likes
0 replies

Please or to participate in this conversation.