Check out example codes for "textarea only one line". It will help you in understanding the concepts better.

Code Example 1

textarea {
  resize: none;
  white-space: nowrap;
  overflow-x: scroll; /* or hidden */
}

Learn ReactJs, React Native from akashmittal.com