Skip to content

Commit

Permalink
Fix not displaying view in navigation (#252)
Browse files Browse the repository at this point in the history
fixes #208

For stack overriding reactSetFrame for active does nothing because active is always NO, so there's no regression.

But it fixes in other cases (like stack navigation - not native one).
  • Loading branch information
osdnk committed Dec 17, 2019
1 parent 15c27e3 commit 77d877f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ios/RNSScreen.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge

- (void)reactSetFrame:(CGRect)frame
{
if (_active) {
[super reactSetFrame:frame];
}
// ignore setFrame call from react, the frame of this view
// is controlled by the UIViewController it is contained in
}
Expand Down

0 comments on commit 77d877f

Please sign in to comment.