Check out example codes for "remove background when autofill input css". It will help you in understanding the concepts better.

Code Example 1

@-webkit-keyframes autofill {
    0%,100% {
        color: #666;
        background: transparent;
    }
}

input:-webkit-autofill {
    -webkit-animation-delay: 1s; /* Safari support - any positive time runs instantly */
    -webkit-animation-name: autofill;
    -webkit-animation-fill-mode: both;
}

Learn ReactJs, React Native from akashmittal.com