Check out example codes for "fade anumation swift". It will help you in understanding the concepts better.

Code Example 1

UIView.animate(withDuration: 1.5) {

        view.alpha = 1.0
    }

Learn ReactJs, React Native from akashmittal.com