Check out example codes for "how to get array of children transform". It will help you in understanding the concepts better.

Code Example 1

Transform[] children = GetComponentsInChildren<Transform>();

Code Example 2

foreach (Transform child in transform){
 	// Do something to child 
 }

Learn ReactJs, React Native from akashmittal.com