React native text component using number of lines

You can use numberOfLines as a props for <Text /> component. Its depend on the width of your component then calculate the length of the text. This prop is commonly used with ellipsizeMode.
Example:

<Text numberOfLines={2} ellipsizeMode="tail">
  Lorem Ipsum is simply dummy text of the printing and typesetting industry.
</Text>

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)