Check out example codes for "unity call function from another script". It will help you in understanding the concepts better.

Code Example 1

public otherScript other;

   void Update()
   {
     other.funtion();
   }

Code Example 2

public GameObject myObject; //make ref. in inspector window

myObject.GetComponent<MyScript>().MyFunction();

Learn ReactJs, React Native from akashmittal.com