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

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

qt - Change color of QGraphicsView rubber band -

c++ - Visible files in the "Projects" View of the Qt Creator IDE if using the CMake build system -