Skip to content

Commit

Permalink
🐞 Fix: Modal Content Sometimes Not Centered
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicstop committed Apr 18, 2023
1 parent 91da1b2 commit 12b09f2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,11 @@ public class RNIModalViewController: UIViewController {
);
#endif

let wrapperView = modalContentWrapper.reactViews.last!;

modalContentWrapper.notifyForBoundsChange(size: nextBounds.size);
wrapperView.center = self.view.center;

self.prevBounds = nextBounds;

self.lifecycleDelegate?.viewDidLayoutSubviews(sender: self);
Expand Down

0 comments on commit 12b09f2

Please sign in to comment.