@dev-vortex/react-native-responsive-styles
Advanced tools
Comparing version 1.0.0-alpha.6 to 1.0.0-alpha.7
"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
13661
138