Skip to content

Commit

Permalink
fix: change condition (#613)
Browse files Browse the repository at this point in the history
Followup of #600 changing the return condition.
  • Loading branch information
WoLewicki authored Sep 15, 2020
1 parent 620d063 commit e5a7d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNSScreenStack.m
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ - (void)didMoveToWindow

- (void)maybeAddToParentAndUpdateContainer
{
if (self.window && !_hasLayout) {
if (!self.window || !_hasLayout) {
// We wait with adding to parent controller until the stack is mounted and has its initial
// layout done.
// If we add it before layout, some of the items (specifically items from the navigation bar),
Expand Down

0 comments on commit e5a7d63

Please sign in to comment.