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

Code Example 1

pointer-events: none;
cursor: default;

Learn ReactJs, React Native from akashmittal.com