| 
				
			 | 
			
			
				@@ -47,12 +47,12 @@ RCT_EXPORT_METHOD(captureRef:(nonnull NSNumber *)target 
			 | 
		
	
		
			
			| 
				47
			 | 
			
				47
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				48
			 | 
			
				48
			 | 
			
			
				     // Get view 
			 | 
		
	
		
			
			| 
				49
			 | 
			
				49
			 | 
			
			
				     UIView *view; 
			 | 
		
	
		
			
			| 
				50
			 | 
			
				
			 | 
			
			
				-    view = viewRegistry[target]; 
			 | 
		
	
		
			
			| 
				51
			 | 
			
				
			 | 
			
			
				-    BOOL nativeCapture = false; 
			 | 
		
	
		
			
			| 
				52
			 | 
			
				
			 | 
			
			
				-    if (!view) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				50
			 | 
			
			
				+ 
			 | 
		
	
		
			
			| 
				
			 | 
			
				51
			 | 
			
			
				+    if ([target intValue] == -1) { 
			 | 
		
	
		
			
			| 
				53
			 | 
			
				52
			 | 
			
			
				       UIWindow *window = [[UIApplication sharedApplication] keyWindow]; 
			 | 
		
	
		
			
			| 
				54
			 | 
			
				53
			 | 
			
			
				       view = window.rootViewController.view; 
			 | 
		
	
		
			
			| 
				55
			 | 
			
				
			 | 
			
			
				-      nativeCapture = true; 
			 | 
		
	
		
			
			| 
				
			 | 
			
				54
			 | 
			
			
				+    } else { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				55
			 | 
			
			
				+      view = viewRegistry[target]; 
			 | 
		
	
		
			
			| 
				56
			 | 
			
				56
			 | 
			
			
				     } 
			 | 
		
	
		
			
			| 
				57
			 | 
			
				57
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				58
			 | 
			
				58
			 | 
			
			
				     if (!view) { 
			 | 
		
	
	
		
			
			| 
				
			 | 
			
			
				@@ -102,7 +102,7 @@ RCT_EXPORT_METHOD(captureRef:(nonnull NSNumber *)target 
			 | 
		
	
		
			
			| 
				102
			 | 
			
				102
			 | 
			
			
				       scrollView.frame = CGRectMake(0, 0, scrollView.contentSize.width, scrollView.contentSize.height); 
			 | 
		
	
		
			
			| 
				103
			 | 
			
				103
			 | 
			
			
				     } 
			 | 
		
	
		
			
			| 
				104
			 | 
			
				104
			 | 
			
			
				  
			 | 
		
	
		
			
			| 
				105
			 | 
			
				
			 | 
			
			
				-    if (nativeCapture) { 
			 | 
		
	
		
			
			| 
				
			 | 
			
				105
			 | 
			
			
				+    if ([target intValue] == -1) { 
			 | 
		
	
		
			
			| 
				106
			 | 
			
				106
			 | 
			
			
				       if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) { 
			 | 
		
	
		
			
			| 
				107
			 | 
			
				107
			 | 
			
			
				         UIGraphicsBeginImageContextWithOptions(view.window.bounds.size, NO, [UIScreen mainScreen].scale); 
			 | 
		
	
		
			
			| 
				108
			 | 
			
				108
			 | 
			
			
				       } else { 
			 |