Check out example codes for "swift corner radious of view controller". It will help you in understanding the concepts better.

Code Example 1

extension UIView {
    func makeCorner(withRadius radius: CGFloat) {
        self.layer.cornerRadius = radius
        self.layer.masksToBounds = true
        self.layer.isOpaque = false
    }
}

Learn ReactJs, React Native from akashmittal.com