Check out example codes for "swift push view controller programmatically". It will help you in understanding the concepts better.

Code Example 1

let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
let nextViewController = storyBoard.instantiateViewController(withIdentifier: "nextView") as! NextViewController
self.present(nextViewController, animated:true, completion:nil)

Learn ReactJs, React Native from akashmittal.com