Check out example codes for "css text black outline". It will help you in understanding the concepts better.

Code Example 1

/* Written for h4 tag, modify as required */
.black-outline{
    -webkit-text-stroke: 1.11px black; /* stroke width and color */
    color: rgb(255, 255, 255);
    -webkit-font-smoothing: antialiased;
    font-weight: bold;
}

Learn ReactJs, React Native from akashmittal.com