File tree Expand file tree Collapse file tree
ios/gamma/modals/form-sheet Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,15 +87,15 @@ - (void)updatePresentationState
8787 return ;
8888 }
8989
90- UIViewController *presentationSourceViewController =
91- [RNSPresentationSourceProvider findViewControllerForPresentationInWindow: self .window];
92- if (presentationSourceViewController == nil ) {
93- return ;
94- }
95-
9690 BOOL isPresented = _controller.presentingViewController != nil ;
9791
9892 if (_isOpen && !isPresented) {
93+ UIViewController *presentationSourceViewController =
94+ [RNSPresentationSourceProvider findViewControllerForPresentationInWindow: self .window];
95+ if (presentationSourceViewController == nil ) {
96+ return ;
97+ }
98+
9999 [presentationSourceViewController presentViewController: _controller animated: YES completion: nil ];
100100 } else if (!_isOpen && isPresented) {
101101 // Dismiss programmatically and delay the reset until the animation completes.
You can’t perform that action at this time.
0 commit comments