Check out example codes for "Alert cannot operate on nodes the current scene inherits from". It will help you in understanding the concepts better.

Code Example 1

bvcghvh

Learn ReactJs, React Native from akashmittal.com