doksan-study / pet-react-native

해당 repo는 react-native 기반으로 app을 제작하는 repo 입니다.
1 stars 0 forks source link

[ Docs ] react-native-vector-icons #6

Open onlyhappiness opened 1 year ago

onlyhappiness commented 1 year ago
npm install --save react-native-vector-icons
공식 문서

https://github.com/oblador/react-native-vector-icons
onlyhappiness commented 1 year ago

android

android>app>build.gradle

// react-native-vector-icons
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

ios

ios > Podfile

 pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

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>