Check out example codes for "cant see my classes in inspector". It will help you in understanding the concepts better.

Code Example 1

[System.Serializable]
public class SomeCustomClass
{
    public string someProperty;
}

Learn ReactJs, React Native from akashmittal.com