Check out example codes for "text overflow 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

.element{

  text-overflow: ellipsis;

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

Code Example 3

overflow: scroll;
white-space: nowrap;

Learn ReactJs, React Native from akashmittal.com