@lodev09/react-native-true-sheet 3.9.2 → 3.9.3

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.
@@ -110,7 +110,8 @@ using namespace facebook::react;
110
110
  }
111
111
 
112
112
  - (CGFloat)screenHeight {
113
- return UIScreen.mainScreen.bounds.size.height;
113
+ UIWindow *window = self.view.window;
114
+ return window ? window.bounds.size.height : UIScreen.mainScreen.bounds.size.height;
114
115
  }
115
116
 
116
117
  - (CGFloat)detentBottomAdjustmentForHeight:(CGFloat)height {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lodev09/react-native-true-sheet",
3
- "version": "3.9.2",
3
+ "version": "3.9.3",
4
4
  "description": "The true native bottom sheet experience for your React Native Apps.",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/module/index.js",