Check out example codes for "css clicked event". It will help you in understanding the concepts better.

Code Example 1

CSS clicked event
:active {
  css declarations;
}

Code Example 2

:active {
  css declarations;
}

Learn ReactJs, React Native from akashmittal.com