Check out example codes for "text overflow ellipsis 1 line". It will help you in understanding the concepts better.

Code Example 1

.truncate {
  width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

Learn ReactJs, React Native from akashmittal.com