728x90
1. 폰트 다운로드
fonts.google.com/?preview.text=2020.09.11+%EA%B8%88&preview.text_type=custom
Google Fonts
Making the web more beautiful, fast, and open through great typography
fonts.google.com
무료라서 좋음!
나는 fonts.google.com/specimen/Noto+Sans+KR?preview.text=2020.09.11%20%EA%B8%88&preview.text_type=custom 이 폰트를 사용함
2. 적용
dev-yakuza.github.io/ko/react-native/react-native-custom-font/
RN(Reacct Native)에서 커스텀 폰트 사용하기
RN(React Native) 프로젝트에서 커스텀 폰트를 적용하고 사용하는 방법에 대해서 알아봅시다.
dev-yakuza.github.io
블로그 참고!
3. 실행
- 안드로이드
root/react-native.config.js
module.exports = {
assets: ['./src/assets/fonts'],
};
실행하면 잘 됨!
- iOS
잘됨!
** 주의: line-height
'Solve Problem > React Native' 카테고리의 다른 글
[React Native] Facebook SDK 적용하기 (0) | 2020.09.30 |
---|---|
[React Native] push notification custom sound 설정하기 / 커스텀 사운드 / 푸시알람 (2) | 2020.09.28 |
[React Native] Sentry로 로그 이벤트 확인하기 (1) | 2020.09.01 |
[React Native] Firebase Admob - Rewards 보상형 동영상 광고 띄우기 (6) | 2020.08.29 |
[React Native] Deep Link 딥링크 (0) | 2020.08.24 |