• Feed
  • Explore
  • Ranking
/
/
    React Native

    React Native 아이콘 사용

    react-nativereact-native-vector-icons
    전
    전상욱
    2025.04.10
    ·
    1 min read

    react-native-vector-icons

    설치

    모듈

    yarn add react-native-vector-icons

    타입

    yarn add -D @types/react-native-vector-icons

    Android

    android/app/build.gradle

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

    IOS

    cd ios && pod install && cd ..
    <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>MaterialCommunityIcons.ttf</string>
      <string>MaterialIcons.ttf</string>
      <string>Octicons.ttf</string>
      <string>SimpleLineIcons.ttf</string>
      <string>Zocial.ttf</string>
      <string>Fontisto.ttf</string>
    </array>

    사용법

    import Ionicons from 'react-native-vector-icons/Ionicons';
    
    export default function App () {
      return (
        <Ionicons name='아이콘 이름' />
      )
    }

    아이콘의 이름은 여기 사이트에서 구할 수 있다.







    - 컬렉션 아티클