// CustomHook.js
// CustomHook.js
import { Dimensions } from 'react-native';

const { width, height } = Dimensions.get('window');

export const useScale = (guideLineBaseWidth = 370, guideLineBaseHeight = 650) => {
  const widthScale = (size) => (width / guideLineBaseWidth) * size;
  const heightScale = (size) => (height / guideLineBaseHeight) * size;

  return { widthScale, heightScale };
};

export const widthScale = (size, guideLineBaseWidth = 370) => (width / guideLineBaseWidth) * size;
export const heightScale = (size, guideLineBaseHeight = 650) => (height / guideLineBaseHeight) * size;

