Check out example codes for "css overflow truncate". It will help you in understanding the concepts better.

Code Example 1

.element{

  text-overflow: ellipsis;

  /* Required for text-overflow to do anything */
  white-space: nowrap;
  overflow: hidden;
}

Code Example 2

//Truncate text overflow 
.element {
	white-space: nowrap;
  	overflow: hidden;
  	text-overflow: ellipsis;
}

Code Example 3

div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

Learn ReactJs, React Native from akashmittal.com