@freakycoder/react-native-helpers
Advanced tools
@@ -26,4 +26,4 @@ import { Platform, Dimensions, NativeModules } from "react-native"; | ||
| */ | ||
| const ScreenMin = Math.min(ScreenWidth, ScreenHeight) || ScreenHeight; | ||
| const ScreenMax = Math.max(ScreenWidth, ScreenHeight) || ScreenWidth; | ||
| const ScreenMin = Math.min(WindowWidth, WindowHeight) || WindowHeight; | ||
| const ScreenMax = Math.max(WindowWidth, WindowHeight) || WindowWidth; | ||
| /** | ||
@@ -33,4 +33,4 @@ * @description | ||
| */ | ||
| const vh = ScreenHeight / 100; | ||
| const vw = ScreenWidth / 100; | ||
| const vh = WindowHeight / 100; | ||
| const vw = WindowWidth / 100; | ||
| const vmin = Math.min(vh, vw) || vh; | ||
@@ -37,0 +37,0 @@ const vmax = Math.max(vh, vw) || vw; |
@@ -30,4 +30,4 @@ import { Platform, Dimensions, NativeModules } from "react-native"; | ||
| */ | ||
| const ScreenMin = Math.min(ScreenWidth, ScreenHeight) || ScreenHeight; | ||
| const ScreenMax = Math.max(ScreenWidth, ScreenHeight) || ScreenWidth; | ||
| const ScreenMin = Math.min(WindowWidth, WindowHeight) || WindowHeight; | ||
| const ScreenMax = Math.max(WindowWidth, WindowHeight) || WindowWidth; | ||
@@ -38,4 +38,4 @@ /** | ||
| */ | ||
| const vh = ScreenHeight / 100; | ||
| const vw = ScreenWidth / 100; | ||
| const vh = WindowHeight / 100; | ||
| const vw = WindowWidth / 100; | ||
| const vmin = Math.min(vh, vw) || vh; | ||
@@ -42,0 +42,0 @@ const vmax = Math.max(vh, vw) || vw; |
+1
-1
| { | ||
| "name": "@freakycoder/react-native-helpers", | ||
| "version": "2.2.1", | ||
| "version": "2.2.2", | ||
| "description": "All helpers in one; iPhone series support, dimensions helper, hasNotch helper, normalize text helper and text helpers for React Native with very easy use", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
+1
-0
@@ -155,2 +155,3 @@ <img alt="React Native Helpers" src="assets/logo.png" width="1050"/> | ||
| - [x] ~~Dynamic Island~~ | ||
| - [ ] Separate the style helpers from device | ||
| - [ ] More custom text helpers | ||
@@ -157,0 +158,0 @@ - [ ] Write an article about the lib on Medium |
Sorry, the diff of this file is not supported yet
116780
0.04%166
0.61%