Check out example codes for "how to close an application in c#". It will help you in understanding the concepts better.
Code Example 1
this.Close(); //This only close the current form or window that you are using.
Code Example 2
Code Example 3
Learn ReactJs, React Native from akashmittal.com