react-native-vector-icons: Ionicons 3.0.0 is a breaking upgrade

I have upgraded to 2.0.0 and found out that Ionicon is upgraded to 3.0.0, which is unfortunately not backward compatible with 2.0.1. So I have to stay at 1.3.4 which still shows the React package warning (0.25.1). Can we have a maintenance release of 1.3.5 that fixes those issues without upgrading Ionicon?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 19 (9 by maintainers)

Commits related to this issue

Most upvoted comments

That makes sense.

Once I looked at the cheatsheet, the upgrade was painless. For those who who want to see the Ionicons 3 cheatsheet, please check this out: https://cdn.rawgit.com/driftyco/ionicons/3.0/cheatsheet.html

@oblador Where can I find the icon names for 3.0.0? http://ionicons.com/ Still shows the 2.0.1 and many of my icons doesn’t work anymore.

Did some digging and found this official cheat sheet: http://ionicframework.com/docs/v2/ionicons/

Closing this issue for now.

Just a note for everyone - after upgrading, we found that the icon names were pointing to the wrong icons until we ran rnpm link again, which seemed to fix the issue!

I was also having issues with the Ionicons upgrade as a lot of the icon names have changed or are gone. In addition, version 3 doesn’t seem to be released yet and there hasn’t been a public commit since 14 January 2016. That being said, Ionic 2 beta will be using Ionicons 3 (https://github.com/driftyco/ionic/blob/2.0/package.json#L20) so it’s a good thing v3 icons are included but it might be helpful to add the v2 icons again as suggested above.

The biggest issue I had was that there is no cheatsheet for v3. It’s a bit inconvenient to have to run a sample application just to see what’s available. Instead, I cloned the ionicons repository (git clone https://github.com/driftyco/ionicons.git), ran git checkout 3.0, and then open cheatsheet.html. I was then able to view all the icons.

I noticed that if you were using “android-*” icon names, you can probably just replace “android” with “md”. The “ionic” custom icons that weren’t prefixed with “ios-” or “android-” seem to be gone.