-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using ionicons 5 in react #835
Comments
We definitely need to include better docs for those, sorry! For the time being, check out our first app tutorial to see how; specifically look at the demo app. |
So when do you plan to include it ? |
Yeah the official IonIcon documentation is completely wrong for a react Ionic app. No idea if this is official or up to date but this worked for me:
Instead of: For a react Ionic app it should be: And be sure to import the icon reference: |
@lucej this will import base64 image and should be enclosed inside a img tag , which would make changing color difficult , masking it would be an option but i need a simple way to do it.
now i can use this same component wherever i need
|
https://github.com/swiftcarrot/react-ionicons we transfer svg from ionicons into react component with the help of svgr |
How to use it in react application , i found react-ionicon package but its kind of outdated and supports ionicons 3 , is there any way i can import ionicons 5 in my react application.
I kind of work around with cdn and it seems to work fine , but i couldnt work around with node modules.
The text was updated successfully, but these errors were encountered: