Check out example codes for "swift show title on navigation bar programmatically". It will help you in understanding the concepts better.

Code Example 1

override func viewDidLoad() {
     super.viewDidLoad()
     self.title = "Your title over here"
}

Learn ReactJs, React Native from akashmittal.com