Check out example codes for "unity change text color". It will help you in understanding the concepts better.

Code Example 1

// To change the color of a text, see below
GameObject.GetComponent<Text>().color = Color.black;

Learn ReactJs, React Native from akashmittal.com