UNPKG

selected-option-picker

Version:

This React-Native component library is created for the selection of single or multiple item(s) from the list in Android/iOS.

16 lines (13 loc) β€’ 442 B
/* * @𝔸𝕦π•₯𝕙𝕖𝕣: β„™π•’π•Ÿπ•œπ•’π•› π•‚π•¦π•žπ•’π•£ ℙ𝕣𝕒𝕛𝕒𝕑𝕒π•₯π•š */ import { Dimensions, PixelRatio } from "react-native"; const { width } = Dimensions.get("window"); const scale = width / 375; export function fontSize(size) { const newSize = size * scale; return Math.round(PixelRatio.roundToNearestPixel(newSize)); } export function scaleSize(size) { return (width / 375) * size; }