Check out example codes for "how to reference function in unity". It will help you in understanding the concepts better.
Code Example 1
public GameObject myObject; //make ref. in inspector window
myObject.GetComponent<MyScript>().MyFunction();
Learn ReactJs, React Native from akashmittal.com