Skip to content

Commit 2cb3dba

Browse files
committed
Don't use RCTPresentedViewController
1 parent bbcbca7 commit 2cb3dba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/RNSwanBrowser.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ - (void)close {
111111
RCT_EXPORT_METHOD(close) {
112112
#endif
113113
if (_safariVC != nil) {
114-
[RCTPresentedViewController() dismissViewControllerAnimated:true completion:^{
114+
[_safariVC dismissViewControllerAnimated:true completion:^{
115115
[self handleOnClose];
116116
}];
117117
}

0 commit comments

Comments
 (0)