Check out example codes for "hidden vs visible". It will help you in understanding the concepts better.

Code Example 1

/*means that the tag in question will 
not appear on the page at all 
(although you can still interact with it through the dom). 
There will be no space allocated for it between the other tags.*/

/*means that unlike display:none, 
the tag is not visible, but space is allocated for it on the page. The tag is rendered, 
it just isn't seen on the page.*/

Learn ReactJs, React Native from