Check out example codes for "swift change background color". It will help you in understanding the concepts better.

Code Example 1

self.view.backgroundColor = UIColor.red

Learn ReactJs, React Native from akashmittal.com