I'm creating react-native
module to access Admob.
But the GADBannerView object requires rootViewController to perform.
Do you know how to create react-native
View/Module to do it?
Thank you very much.
From the native objective C code in your module, you can access the root view controller of the app as follows:
UIViewController *rootViewController = [UIApplication sharedApplication].delegate.window.rootViewController;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With