|
...
|
...
|
@@ -27,17 +27,20 @@ RCT_EXPORT_METHOD(init:(NSDictionary *)options) |
|
|
|
}
|
|
|
|
RCT_EXPORT_METHOD(gotoNative:(NSDictionary*)param)
|
|
|
|
{
|
|
|
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
|
self.rootVc = [ADDelegta sharedAppDelegate].window.rootViewController;
|
|
|
|
VodeAdController* vvc = [VodeAdController new];
|
|
|
|
vvc.param = param;
|
|
|
|
[ADDelegta sharedAppDelegate].window.rootViewController = vvc;
|
|
|
|
[[ADDelegta sharedAppDelegate].window makeKeyAndVisible];
|
|
|
|
});
|
|
|
|
}
|
|
|
|
RCT_EXPORT_METHOD(backJS)
|
|
|
|
{
|
|
|
|
|
|
|
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
|
[ADDelegta sharedAppDelegate].window.rootViewController = self.rootVc;
|
|
|
|
[[ADDelegta sharedAppDelegate].window makeKeyAndVisible];
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
|
...
|
...
|
|