1. 안드로이드 에뮬레이터 자체 폰트 사이즈 변경(설정)

adb shell settings put system font_scale {폰트 사이즈}

{폰트 사이즈} 에는 1, 1.5, 1.75, 2.52 등 숫자 입력

 

 

 

2. React Native 기기  Font Scale 설정 알아내기

방법 1

import {useWindowDimensions} from 'react-native';


...

	useWindowDimensions().fontScale;

...

 

방법 2

react native device info 사용

import DeviceInfo from 'react-native-device-info';

...

	DeviceInfo.getFontScale().then(scale => {console.log(scale)})
    
...

+ Recent posts