Check out example codes for "how to se linear gradient in css". It will help you in understanding the concepts better.

Code Example 1

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

Code Example 2

.gradient {
	background-image: linear-gradient(angle, color1, color2) // angle: 90deg,  color1: red, color2:darkred
}

Code Example 3

.foo {
	background-image: linear-gradient(red, blue);
}

Learn ReactJs, React Native from akashmittal.com