Check out example codes for "how to make a striped background css". It will help you in understanding the concepts better.

Code Example 1

.vertical-stripes { border: solid 1px red; background: repeating-linear-gradient( 90deg, #fff, #fff 20px, #000 20px, #000 40px); height: 200px; width: 200px; }

Learn ReactJs, React Native from akashmittal.com