We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60c0894 commit 7de4fa1Copy full SHA for 7de4fa1
1 file changed
Examples/CodePushDemoApp/iOS/CodePushDemoAppTests/CodePushDemoAppTests.m
@@ -12,6 +12,7 @@
12
13
#import <React/RCTLog.h>
14
#import <React/RCTRootView.h>
15
+#import <React/RCTUtils.h>
16
17
#define TIMEOUT_SECONDS 600
18
#define TEXT_TO_LOOK_FOR @"Welcome to React Native!"
@@ -37,7 +38,7 @@ - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
37
38
39
- (void)testRendersWelcomeScreen
40
{
- UIViewController *vc = [[[[UIApplication sharedApplication] delegate] window] rootViewController];
41
+ UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
42
NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
43
BOOL foundElement = NO;
44
0 commit comments