디자인과 개발 디바이스별 사이즈 대응
import {Dimensions} from 'react-native'; // 디자인 시안의 기본 디바이스 크기 export const basicDimensions = { height: 740, // 세로 크기 width: 360, // 가로 크기 }; // 현재 화면 크기 계산 함수 const calculateDimension = () => { const {height, width} = Dimensions.get('window'); return { height, // 현재 세로 크기 width, // 현재 가로 크기 }; }; // 세로 및 가로 방향 비율에 따른 크기 변환 함수 생성 export const getDimension = () => { const {height, width} = calcul..
react-native-tool
2023. 6. 28. 11:22