From f9ad04440e9fa7e8adab435e7e50ce0100da8d0f Mon Sep 17 00:00:00 2001 From: Koen Punt Date: Fri, 5 Oct 2018 11:07:27 +0200 Subject: [PATCH] fix presentation of share sheet when react root view is already presented --- ActivityView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ActivityView.m b/ActivityView.m index 2638ebe..3a13748 100644 --- a/ActivityView.m +++ b/ActivityView.m @@ -127,7 +127,7 @@ - (void) showWithOptions:(NSDictionary *)args image:(UIImage *)image : nil; // Display the Activity View - UIViewController *ctrl = [[[[UIApplication sharedApplication] delegate] window] rootViewController]; + UIViewController *ctrl = RCTPresentedViewController(); /* * The `anchor` option takes a view to set as the anchor for the share