text: import { StatusBar, PixelRatio, Dimensions, Platform } from "react-native";
  // import DeviceInfo from "react-native-device-info";
  const { height, width } = Dimensions.get("window");
  
  // export function isIphoneX() {
  //   return Platform.OS === "ios" && DeviceInfo.hasNotch();
  // }
  
  export function getHeight(h) {
    const elemHeight = parseFloat(h);
    return PixelRatio.roundToNearestPixel((height * elemHeight) / 100);
  }
  
  export function getWidth(w) {
    const elemWidth = parseFloat(w);
    return PixelRatio.roundToNearestPixel((width * elemWidth) / 100);
  }
  
  // export function getFontSize(font) {
  //   const deviceHeight = isIphoneX()
  //     ? height * 0.9
  //     : Platform.OS === "android"
  //     ? height - StatusBar.currentHeight
  //     : height;
  //   const deviceHeightPercent = (font * deviceHeight) / 100;
  //   return Math.round(deviceHeightPercent);
  // }
  