Check out example codes for "how to hide and show object in unity script". It will help you in understanding the concepts better.
Code Example 1
GameObject cat;
cat.SetActive(false); // false to hide, true to show
Learn ReactJs, React Native from akashmittal.com