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

Code Example 1

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

Code Example 2

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

 }

Code Example 3

.element{

  text-overflow: ellipsis;

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

Code Example 4

overflow: scroll;
white-space: nowrap;

Code Example 5

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

Code Example 6

.text-ellipsis{
  display: block;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

Learn ReactJs, React Native from akashmittal.com