Fixed CodePushDemoAppTest compile error for iOS extension

This commit is contained in:
max-mironov
2017-04-11 10:24:41 +03:00
parent 60c0894a0a
commit 7de4fa1233

View File

@@ -12,6 +12,7 @@
#import <React/RCTLog.h>
#import <React/RCTRootView.h>
#import <React/RCTUtils.h>
#define TIMEOUT_SECONDS 600
#define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
@@ -37,7 +38,7 @@
- (void)testRendersWelcomeScreen
{
UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController];
UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
BOOL foundElement = NO;