Add Custom Icon in Ionic 2

后端 未结 10 2019
既然无缘
既然无缘 2020-12-02 06:35

I am using Ionic 2 for developing my App. I want to use my custom icons in my app like we use ionic 2 icons using tag. Eg:



        
10条回答
  •  自闭症患者
    2020-12-02 07:00

    According to ionic team:

    Hey there! Right now it's limited to using ionicons, since underneath it's rendering an ion-icon, and thats handling the platform differences. You could open an issue and we could discuss adding this feature there

    You can see all answers in here:

    https://forum.ionicframework.com/t/anyway-to-custom-the-tabbars-icon-with-my-own-svg-file/46131/16

    I also find this:

    https://www.npmjs.com/package/ionic2-custom-icons ,

    but do not seems a clever solution (I prefer to wait for a solution of Ionic team).

    The best scenario for this is use old way, by creating a class on a scss file.

提交回复
热议问题