Socket
Socket
Sign inDemoInstall

@dev-vortex/react-native-responsive-styles

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0-alpha.6 to 1.0.0-alpha.7

12

dist/plugins/dpPtCorrection.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDpPtCorrection = void 0;
let definedPixelRatio = 1;
let definedFontScale = 1;
const getDpPtCorrection = (pixelRatio, fontScale) => {
definedPixelRatio = pixelRatio;
definedFontScale = fontScale;
return dpPtCorrection;
};
exports.getDpPtCorrection = getDpPtCorrection;
const dpPtCorrection = (value) => {
const dpPtCorrection = (definedPixelRatio = 1, definedFontScale = 1) => (value) => {
const validResponsiveRegex = /^(\-?\d+(?:\.\d{1,3})?)@(dp|pt)$/;

@@ -34,2 +26,4 @@ const PX_PT_RATIO = 1.328;

};
const getDpPtCorrection = (pixelRatio, fontScale) => dpPtCorrection(pixelRatio, fontScale);
exports.getDpPtCorrection = getDpPtCorrection;
//# sourceMappingURL=dpPtCorrection.js.map
{
"name": "@dev-vortex/react-native-responsive-styles",
"version": "1.0.0-alpha.6",
"version": "1.0.0-alpha.7",
"description": "React Native responsive styling",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc