Check out example codes for "show back button in navbar swift". It will help you in understanding the concepts better.

Code Example 1

let backButton = UIBarButtonItem()
 backButton.title = "New Back Button Text"
 self.navigationController?.navigationBar.topItem?.backBarButtonItem = backButton

Learn ReactJs, React Native from akashmittal.com