Open number1hustler opened 4 months ago
the same issue occurs in my application
@BadLice Let me know if you ever find a resolution please!
Solution: Remove these lines of code:
UIViewController *ctrl = RCTPresentedViewController();
NSString* animationKey = @"dismissInAppBrowser";
[ctrl.view.layer addAnimation:transition forKey:animationKey];
[ctrl dismissViewControllerAnimated:NO completion:^{
[ctrl.view.layer removeAnimationForKey:animationKey];
}];
From this method:
- (void)dismissWithoutAnimation:(SFSafariViewController *)controller
Because at this time the presentedController is not Safari controller anymore.
Hi @thuongtv-vn,
Thank you for your response, your patch resolved my issue! Do you plan to open a PR?
IOS/Android/Both
"react-native-inappbrowser-reborn": "^3.7.0",
When the cancel/dismiss button is called the modal where inAppBrowser is launched from is closed -- the state of modalVisible doenst change in anyway and remains true