Check out example codes for "ombre color div". It will help you in understanding the concepts better.

Code Example 1

div {
    background: linear-gradient(to bottom, #33ccff 0%, #ff99cc 102%);
}

Learn ReactJs, React Native from akashmittal.com