🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@freakycoder/react-native-helpers

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@freakycoder/react-native-helpers - npm Package Compare versions

Comparing version
2.2.1
to
2.2.2
+4
-4
build/dist/helpers/device/DeviceInfo.js

@@ -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;

{
"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": [

@@ -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