oblador / react-native-vector-icons

Customizable Icons for React Native with support for image source and full styling.
https://oblador.github.io/react-native-vector-icons/
MIT License
17.43k stars 2.12k forks source link

Missing AntDesign Icons #868

Closed LuisRizo closed 6 years ago

LuisRizo commented 6 years ago

Environment

OS: macOS High Sierra 10.13.6 Target Platform: iOS react-native: 0.57.2 react-native-vector-icons: v6.0.2

Description

After upgrading from v4.6.0 -> 6.0.1, some icons from AntDesign, like ('caret-right', 'minus-circle') showed up as a question mark (?).

That's when I created a brand new react-native project, now using version 6.0.2 of react-native-vector-icons, and the same occurred.

Reproducible Demo

react-native init iconsTest
cd iconsTest
npm i --save react-native-vector-icons
react-native link react-native-vector-icons

Run the app with the following code in App.js


import Icon from 'react-native-vector-icons/AntDesign'

export default class App extends Component<Props> {
  render() {
    return (
      <View style={styles.container}>
        <Icon name="caret-right" size={40}/>
        <Icon name="pay-circle1" size={40}/>
        <Icon name="aliwangwang-o1" size={40}/>
        <Icon name="minus-circle" size={40}/>
      </View>
    );
  }
}

My results: screen shot 2018-10-08 at 6 04 02 pm

oblador commented 6 years ago

Hi, this is not really a helpful issue. Can you provide some context besides your env?

LuisRizo commented 6 years ago

Sorry @oblador , I pressed CMD + Enter, submitting the issue by accident while editing

hampustagerud commented 6 years ago

You seem to be using the wrong names for your icons. You can use https://github.com/oblador/react-native-vector-icons/blob/master/glyphmaps/AntDesign.json or https://oblador.github.io/react-native-vector-icons/ when looking up the name.

caret-right should be caretright for example. https://github.com/oblador/react-native-vector-icons/blob/77c0010a627e4b84b6eaa563886ee68e98ce6056/glyphmaps/AntDesign.json#L6

LuisRizo commented 6 years ago

@hampustagerud You're right, I was using AntDesign's website as a guidance for the names. Sorry for the confusion