Check out example codes for "put an border around an text in css". It will help you in understanding the concepts better.

Code Example 1

text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;

Learn ReactJs, React Native from akashmittal.com