Check out example codes for "how to change button gradient". It will help you in understanding the concepts better.

Code Example 1

.Button:hover { /*this example is used for a hover state*/
background: linear-gradient( 90deg,Color1,Color2 ) ; 
}
/*input the degree with "deg" of the gradient,
then first and second colors*/

Learn ReactJs, React Native from akashmittal.com