Check out example codes for "unity get scrollbar value". It will help you in understanding the concepts better.

Code Example 1

// To get the value of a scrollbar, use below
gameObject.GetComponent<Scrollbar>().value;

Learn ReactJs, React Native from akashmittal.com