Is there a way to import all icon sets at once?
See original GitHub issueIs there a way to import all fonts at once?
Something like this :
import * as IconSets from "react-native-vector-icons"
And in the render method:
return <IconSets.MaterialIcons name="alarm" size={30} />
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to import icons from multiple files in react native vector ...
1- Create file Icon.js. · 2- After Import the Icon file: import Icon from '../../component/common/Icon'; · 3- And use like that:
Read more >Best way to add or import Multiple or Many Icons to ... - YouTube
In this video you will learn the beginner approach to using HTML, Tailwindcss and React hooks to import Multiple icons.
Read more >Introducing IconJar, the best tool for organizing icons
Once you have imported your icon sets into IconJar, you can create collections in the sidebar, and copy or move icons from other...
Read more >Import React-Icons
Import any* of the many popular icon sets that are included in the react-icons library directly in to your Figma file. The icons...
Read more >How to Use Popular Icon Sets in Your React Apps with ...
While is it possible to import all the icons from a set with a single import, it is not advisable. This will increase...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This article will help you follow these steps https://medium.com/p/45c0afdb7ca7
That’s exactly what I did in a project.
index.js
looks like this:Except that instead of importing from my local folder (for example:
import ZocialI from './Zocial'
) I just imported directly from the library as you might just want to have a single file (index.js), and not a file per font like I do.Other files look like this: