Check out example codes for "changing color of background swift". It will help you in understanding the concepts better.
Code Example 1
self.view.backgroundColor = UIColor.blue // or .blue for shorthand
Learn ReactJs, React Native from akashmittal.com