Check out example codes for "how to give a background color strip in html and css". It will help you in understanding the concepts better.

Code Example 1

#colorstrip{
    width: 100%; height: 2px;
    border-style: solid;
    border-color: white;
    background-color: white;
}

Learn ReactJs, React Native from akashmittal.com