Check out example codes for "how to get the current gameobject animator in unity". It will help you in understanding the concepts better.

Code Example 1

Animator animator = this.GetComponent<Animator>();

Learn ReactJs, React Native from akashmittal.com