arniu / react-native-ionicons

Ionic icons for React Native
MIT License
42 stars 11 forks source link

5.0: Icon indexes are wrong (with 4.x also installed) #18

Open lukewlms opened 4 years ago

lukewlms commented 4 years ago

I'm trying to get 5.0 beta working, but passing the icon name returns a different icon every time.

"airplane" returns a football "add-circle-outline" returns add "football" returns a test tube "football-sharp" returns a folder

The icons also do not look like the Ionicons 5 icons, so I'm guessing that react-native-ionicons is actually accessing a previous version of the library. We have other libraries that include Ionicons and may conflict (e.g. native-base). Do you have any advice to get react-native-ionicons to use the correct 5.0 font?

Thanks - I'd love to get this up and running as it's the only library that appears to support the 5.0 icon set.

arniu commented 4 years ago

Oh, my god!

arniu commented 4 years ago

Can you remove 4.x and try it again?

According to the Ionicons CHANGELOG, icon names change a lot.

lukewlms commented 4 years ago

I'll work on trying this - it's a bit tricky because two other libs we use fairly extensively have 4.0 as dependencies.

jay0911 commented 3 years ago

hello encountered on my project