Check out example codes for "expression must have integral or unscoped enum type". It will help you in understanding the concepts better.
Code Example 1
You can't use a floating point variable as the size of an array - it needs to be an integer value... https://stackoverflow.com/questions/21341254/error-expression-must-have-integral-or-unscoped-enum-type
Learn ReactJs, React Native from akashmittal.com