Check out example codes for "swift open settings page". It will help you in understanding the concepts better.

Code Example 1

guard let settingsUrl = URL(string: UIApplication.openSettingsURLString) else {
  return
}

if UIApplication.shared.canOpenURL(settingsUrl) {
  UIApplication.shared.open(settingsUrl, completionHandler: { (success) in
                                                             print("Settings opened: \(success)") // Prints true
                                                            })
}

Learn ReactJs, React Native from akashmittal.com