mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-26 04:07:04 +08:00
Fixed CodePushDemoAppTest compile error for iOS extension
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
#import <React/RCTLog.h>
|
#import <React/RCTLog.h>
|
||||||
#import <React/RCTRootView.h>
|
#import <React/RCTRootView.h>
|
||||||
|
#import <React/RCTUtils.h>
|
||||||
|
|
||||||
#define TIMEOUT_SECONDS 600
|
#define TIMEOUT_SECONDS 600
|
||||||
#define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
|
#define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
|
||||||
@@ -37,7 +38,7 @@
|
|||||||
|
|
||||||
- (void)testRendersWelcomeScreen
|
- (void)testRendersWelcomeScreen
|
||||||
{
|
{
|
||||||
UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController];
|
UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
|
||||||
NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
|
NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
|
||||||
BOOL foundElement = NO;
|
BOOL foundElement = NO;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user