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
Post a Comment