Check out example codes for "perform segue swift". It will help you in understanding the concepts better.

Code Example 1

// replace "example" with your segue identifier
self.performSegue(withIdentifier: “example”, sender: self)

Learn ReactJs, React Native from akashmittal.com