Check out example codes for "html dim entire screen". It will help you in understanding the concepts better.

Code Example 1

box-shadow: 0 0 0 100vmax rgba(0,0,0,0.6);

Learn ReactJs, React Native from akashmittal.com