@umituz/react-native-design-system 4.25.37 → 4.25.38

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-design-system",
3
- "version": "4.25.37",
3
+ "version": "4.25.38",
4
4
  "description": "Universal design system for React Native apps - Consolidated package with atoms, molecules, organisms, theme, typography, responsive, safe area, exception, infinite scroll, UUID, image, timezone, offline, onboarding, and loading utilities",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -1,12 +1,11 @@
1
1
  /**
2
2
  * Screen Dimensions
3
- * Centralized screen dimension values using React Native Dimensions directly
4
- * (avoids pulling in expo-device which is an optional peer dependency)
3
+ * Centralized screen dimension values using design system utilities
5
4
  */
6
5
 
7
- import { Dimensions } from "react-native";
6
+ import { getScreenDimensions } from "../../../../device/detection/deviceDetection";
8
7
 
9
- const { width, height } = Dimensions.get("window");
8
+ const dimensions = getScreenDimensions();
10
9
 
11
- export const SCREEN_WIDTH = width;
12
- export const SCREEN_HEIGHT = height;
10
+ export const SCREEN_WIDTH = dimensions.width;
11
+ export const SCREEN_HEIGHT = dimensions.height;