Check out example codes for "unity on trigger enter". It will help you in understanding the concepts better.

Code Example 1

//for unity c#

private void OnTriggerEnter(Collider other)
{
    // code
}

Code Example 2

private void OnTriggerEnter(Collider other)

Learn ReactJs, React Native from akashmittal.com