hybrid-navigation 2.17.1 → 2.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -587,8 +587,12 @@
587
587
  }
588
588
 
589
589
  - (CGRect)fakeBarFrameForViewController:(UIViewController *)vc {
590
- CGRect frame = CGRectMake(0, 0, self.navigationBar.frame.size.width, UIApplication.sharedApplication.statusBarFrame.size.height + self.navigationBar.frame.size.height);
591
- return frame;
590
+ CGFloat height = self.navigationBar.frame.size.height + self.navigationBar.frame.origin.y;
591
+ if (vc.view.frame.size.height == self.view.frame.size.height) {
592
+ return CGRectMake(0, 0, self.navigationBar.frame.size.width, height);
593
+ }else{
594
+ return CGRectMake(0, -height, self.navigationBar.frame.size.width, height);
595
+ }
592
596
  }
593
597
 
594
598
  - (CGRect)fakeShadowFrameWithBarFrame:(CGRect)frame {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "hybrid-navigation",
3
3
  "description": "React Native Navigation that supports seamless navigation between Native and React.",
4
- "version": "2.17.1",
4
+ "version": "2.17.2",
5
5
  "main": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",
7
7
  "react-native": "src/index",