Check out example codes for "text shadow effect". It will help you in understanding the concepts better.

Code Example 1

//offset 2px right and down with a 5px defusion of gray
h1 {
  text-shadow: 2px 2px 5px gray;
}

Learn ReactJs, React Native from akashmittal.com