question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ask 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:closed
  • Created 4 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
jayucommented, Aug 30, 2019

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) or more-vert (2.x) should work. If both don’t work I cannot help without more complex reproduction

2reactions
Arnaud-Jcommented, Sep 5, 2019

I can confirm the following from @rodrigo98rm

Icon names on my project seem to point to Google Material Icons, but the icon list available on the docs point to Material Community Icons.

If Material Community Icons works only on (3.x), which is currently on alpha (according to the releases page), shouldn’t the docs show the list of icons available for (2.x)?

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found