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.

Failed prop type: Invalid prop `name` of value `home-outline` supplied to `Icon

See original GitHub issue

For android, I try to use ‘home-outline’ icon of ionicons

import Icon from 'react-native-vector-icons/Ionicons';
<Icon name='home-outline' size={30}/>;

but i have error Failed prop type: Invalid prop 'name' of value 'home-outline' supplied to 'Icon...

I have lastest version of this package "react-native-vector-icons": "^7.0.0", And for React-native "react-native": "~0.62.2", I read documentation but i don’t see why i have this warning 😦

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:11
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
hamzafarooqui98commented, Aug 18, 2021

Use any other vector icon library’s heart Icon like AntDesign as I used this:

import AntDesign from ‘react-native-vector-icons/AntDesign’; <AntDesign name="hearto" color="#FF6347" size={25} />

0reactions
satyabrata-dash5commented, Dec 2, 2022

Same issue happens with me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vector icons for android and ios - Stack Overflow
Warning : Failed prop type: Invalid prop name of value close-circle supplied to Icon, expected one of ... If I pass ios/android properties ......
Read more >
Invalid prop `name` of value `home-outline` supplied to `Icon
Failed prop type : Invalid prop `name` of value `home-outline` supplied to ... For android, I try to use 'home-outline' icon of ionicons...
Read more >
React Native Icons For iOS and Android (RN version 0.60+)
This means you're using wrong name prop for icon, to avoid this error ... failed prop type invalid prop name of value supplied...
Read more >
react-native-vector-icons directory
add-to-list.. add-user.. address.. adjust ... price-ribbon.. price-tag.. print ... propeller-2.. propeller-3.. propeller-4.
Read more >
react-native-vector-icons: Icons and fonts for React Native apps
We can export the components with three props that allow us to control the color, size, and type of icon: size is predefined...
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