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

Code Example 1

span
{
  white-space: pre;
}

Learn ReactJs, React Native from akashmittal.com