Check out example codes for "background gradient vertical css". It will help you in understanding the concepts better.

Code Example 1

.element {
    background: linear-gradient(pink 50%, cyan 50%);
}

Code Example 2

.element {
    background: linear-gradient(90deg, pink 50%, cyan 50%);
}

Learn ReactJs, React Native from akashmittal.com