Icon prop error.
See original GitHub issueAsk your Question
As it says in documentation, I tried to add button with icon which is ‘dots-vertical’. And it says that is invalid though the document says that icon is in the supported list.
And I’m using expo so AFAIK there’s no need of extra configuration.
The error message was : Invalid prop name of value ‘dots-vertical’ supplied to ‘icon’.
The code was like below :
<Button icon='dots-vertical' size={20} onPress={() => {this._openMenu}} />
Please help with this problem. Many thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
FontAwesome icon prop error in Nextjs project - Stack Overflow
I have Nav bar component where I am trying to insert FontAwesome icon but it is saying: Type "icon" ...
Read more >Type 'IconDefinition' is not assignable to type 'IconProp' with ...
I was trying to import github icon( faGithub ) in fontawesome. when I run the next.js's dev mode first without import github icon...
Read more >(typescript) facing problem trying to pass font-awsome icon as ...
Error : Type 'object' is not assignable to type 'IconProp'. ... 3): The expected type comes from property 'icon' which is declared here...
Read more >typescript) facing problem trying to pass font-awsome icon as ...
[Solved]-(typescript) facing problem trying to pass font-awsome icon as object ... '@fortawesome/fontawesome-svg-core'; interface Props { img: IconProp; }.
Read more >React Icons
Include popular icons in your React projects easily with react-icons, which utilizes ES6 imports that allows you to include only the icons that...
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 FreeTop 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
Top GitHub Comments
You should check the version in package.json. Check this example https://snack.expo.io/@jaysbytes/jealous-carrot In your case
dots-vertical
(3.x) ormore-vert
(2.x) should work. If both don’t work I cannot help without more complex reproductionI can confirm the following from @rodrigo98rm
Also, I am a little confused with the docs. Are they entirely 3.x ? Or are they 2.x with some (probably misplaced) 3.x parts ? For the record, I lost about one hour trying icons, checking linking of my react-native-vector-icon lib, checking my ttf files and so on.