Check out example codes for "how ot make a variable public without showing in the inspector". It will help you in understanding the concepts better.

Code Example 1

public float notHidden; // Displayed
[HideInInspector] // Hides var below
public float hidden;

Learn ReactJs, React Native from akashmittal.com