Check out example codes for "how to get scene index unity". It will help you in understanding the concepts better.

Code Example 1

SceneManager.GetActiveScene().buildIndex;

Learn ReactJs, React Native from akashmittal.com