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

Code Example 1

public Text myText;

void Start()
{
    myText.text = "This is my text";
}

Learn ReactJs, React Native from akashmittal.com