Check out example codes for "how to call app delegate function in swift". It will help you in understanding the concepts better.

Code Example 1

// get a reference to the app delegate
guard let let appDelegate: AppDelegate? = UIApplication.shared.delegate as? AppDelegate else { return }

// call function
appDelegate.someFunc()

Learn ReactJs, React Native from akashmittal.com