Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 7de4fa1

Browse files
author
max-mironov
committed
Fixed CodePushDemoAppTest compile error for iOS extension
1 parent 60c0894 commit 7de4fa1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Examples/CodePushDemoApp/iOS/CodePushDemoAppTests/CodePushDemoAppTests.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
#import <React/RCTLog.h>
1414
#import <React/RCTRootView.h>
15+
#import <React/RCTUtils.h>
1516

1617
#define TIMEOUT_SECONDS 600
1718
#define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
@@ -37,7 +38,7 @@ - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
3738

3839
- (void)testRendersWelcomeScreen
3940
{
40-
UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController];
41+
UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
4142
NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
4243
BOOL foundElement = NO;
4344

0 commit comments

Comments
 (0)