Check out example codes for "how to remove text highlight on double click". It will help you in understanding the concepts better.

Code Example 1

/**HTML**/
<h1 class="element">The Element</h1>

/**CSS**/
.element {
	user-select: none;
}

Learn ReactJs, React Native from akashmittal.com