Check out example codes for "How to set back button text in Swift". It will help you in understanding the concepts better.

Code Example 1

let backButton = UIBarButtonItem()

backButton.title = "name"

self.navigationController?.navigationBar.topItem?.backBarButtonItem = backButton

Learn ReactJs, React Native from akashmittal.com