Check out example codes for "dual tone background html". It will help you in understanding the concepts better.

Code Example 1

background-image: linear-gradient(direction, color-stop1, color-stop2, ...);

Learn ReactJs, React Native from akashmittal.com