Check out example codes for "findobject getcomponent". It will help you in understanding the concepts better.

Code Example 1

GameObject.Find("Name of the object you want to access").GetComponent<Name of the Component (Transform,Script,RigidBody,etc..)();
     An Example (easy to understand):
     GameObject Player = GameObject.Find("Player");
     PlayerController PlayerControllerScript = Player.GetComponent<PlayerController>(); = true;
     Another Example:
     GameObject.Find("Player").GetComponent<PlayerController>().run = true;

Code Example 2

rb = GetComponent<Rigidbody>();

Learn ReactJs, React Native from