corymsmith / react-native-icons

Quick and easy icons in React Native
MIT License
1.14k stars 141 forks source link

Ionic icons not working #60

Closed evanmrose closed 9 years ago

evanmrose commented 9 years ago

When I try to reference an ionic icon (ionic ios icons work fine) like so:

<Icon
    name='ion|mic-a'
    size={50}
    color={'#f7f5ff'}
    style={styles.audioCreateIcon}
     >
</Icon>

Ios icons work fine but with normal ionic icons I get an error EXC Bad Instruction.

corymsmith commented 9 years ago

I'm guessing that the name of the icon is different in the generated code? What icon are you trying to use?

fabiomcosta commented 9 years ago

@evanmrose make sure you are setting a width and height on your styles https://github.com/corymsmith/react-native-icons#notes

corymsmith commented 9 years ago

@evanmrose Did you get this working? This is working for me