Check out example codes for "add shadow to background image css". It will help you in understanding the concepts better.

Code Example 1

box-shadow: inset 0 0 5px 2px #282a2d; /* mark the inset */

Learn ReactJs, React Native from akashmittal.com