Check out example codes for "how to check the tag of a collider in unity". It will help you in understanding the concepts better.
Code Example 1
void OnTriggerEnter(Collider collision)
{
if(collision.gameObject.tag == "[Tag]")
{
//Do Something...
}
}
Learn ReactJs, React Native from akashmittal.com