Check out example codes for "css box-shadow over other elements". It will help you in understanding the concepts better.

Code Example 1

myElm {
  position: relative;
  
  box-shadow: 1px 1px 2px black;
}

Learn ReactJs, React Native from akashmittal.com