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

Application.Exit();

Code Example 3

application.Exit();

Learn ReactJs, React Native from akashmittal.com