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
JavaScript
/*
* @πΈπ¦π₯πππ£: βπππππ ππ¦πππ£ βπ£ππππ‘ππ₯π
*/
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;
}