Check out example codes for "get if object has tag unity". It will help you in understanding the concepts better.

Code Example 1

if (NameOfGameObject.tag == "A-Tag") {

// some code

}

Learn ReactJs, React Native from akashmittal.com