Failed prop type: Invalid prop `name` of value `home-outline` supplied to `Icon
See original GitHub issueFor 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:
- Created 3 years ago
- Reactions:11
- Comments:6 (1 by maintainers)
Top 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 >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
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} />
Same issue happens with me