React-Native/Error
[React-Native][iOS][Error] Unrecognized font family Error
TrueSik
2022. 6. 15. 21:08
빌드했는데 iOS 시뮬레이터에서
위와 같은 에러가 발생한 경우는 info.plist 파일에 사용할 폰트나 아이콘을 등록하지 않을 경우 발생한 Error입니다.
ios/[프로젝트 명]/Info.plist
<key>UIAppFonts</key>
<array>
// 사용 할 폰트나 아이콘 이름을 추가
<string>AntDesign.ttf</string>
<string>Entypo.ttf</string>
<string>EvilIcons.ttf</string>
<string>Feather.ttf</string>
<string>FontAwesome.ttf</string>
<string>FontAwesome5_Brands.ttf</string>
<string>FontAwesome5_Regular.ttf</string>
<string>FontAwesome5_Solid.ttf</string>
<string>Foundation.ttf</string>
<string>Ionicons.ttf</string>
<string>MaterialIcons.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
<string>SimpleLineIcons.ttf</string>
<string>Octicons.ttf</string>
<string>Zocial.ttf</string>
</array>
추가 후 다시 시뮬레이터를 빌드해야 적용이 된다.
참고
Error: Unrecognized font family Material Design icons after installing react-native-elements?
I am a Newbie in react-native. I created a new project using react-native-cli. I am Using react-native-elements As A UI component library for React Native. So I ran following commands **npm i react-
stackoverflow.com
unrecognized font family 'material design icons'
- IOS에서 빌드시 위 에러 발생 - 사용중인 패키지: react-native-vector-icons - Info.plist 파일에서 다음을 추가 UIAppFonts AntDesign.ttf Entypo.ttf EvilIcons.ttf Feather.ttf FontAwesome.ttf FontAwesome..
lemny.tistory.com