react native text overflow line clamp code example

Example 1: react native text ellipsis

<Text numberOfLines={1} ellipsizeMode='end'}>

Example 2: react native ellipsis

// For Text compoment use numberOfLines and augment with ellipsizeMode
<View style = { styles.MainContainer }>            
  <Text style={styles.TextStyle} numberOfLines = { 1 }  > 
	This is the Sample Ellipsis Text for Ellipsis from End.
  </Text>

  <Text style={styles.TextStyle} numberOfLines = { 1 } ellipsizeMode = 'head'> 
	This is the Sample Ellipsis Text for Ellipsis from Start.
  </Text>
 
  <Text style={styles.TextStyle} numberOfLines = { 1 } ellipsizeMode = 'middle'>  
	This is the Sample Ellipsis Text for Ellipsis from Middle.
  </Text>
</View>