Check out example codes for "stop text from wrapping". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com