import { Dimensions } from 'react-native';
const { width, **fontScale** } = Dimensions.get("window");
const styles = StyleSheet.create({
fontSize: idleFontSize / **fontScale**,
});
import { Dimensions, Platform, PixelRatio } from 'react-native';
const {
width,
height,
} = Dimensions.get('window');
export function normalize(size, multiplier = 2) {
const scale = (width / height) * multiplier;
const newSize = size * scale;
return Math.round(PixelRatio.roundToNearestPixel(newSize));
}