objective c - How to access rootViewController from React-Native -


i'm creating react-native module access admob. gadbannerview object requires rootviewcontroller perform. know how create react-native view/module it? thank much.

from native objective c code in module, can access root view controller of app follows:

uiviewcontroller *rootviewcontroller = [uiapplication sharedapplication].delegate.window.rootviewcontroller; 

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -