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