Check out example codes for "swift open web page". It will help you in understanding the concepts better.
Code Example 1
if let url = URL(string: "https://www.google.com"),
UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url, options: [:])
}
Learn ReactJs, React Native from akashmittal.com