Check out example codes for "css make input unselectable". It will help you in understanding the concepts better.

Code Example 1

input {
      pointer-events:none;
    }

Learn ReactJs, React Native from akashmittal.com