Check out example codes for "how to make a global variable in c#". It will help you in understanding the concepts better.

Code Example 1

public static class Myvariables{

    public static int x = 1;


Code Example 2

Make A New Class File And Add This

    internal class Global
        public static int32 Int1 = 1;
        public static string Text1 = "Sample Text";
		public static bool Bool1 = True;

Learn ReactJs, React Native from