Invalid prop 'name' on icon
See original GitHub issueHere is my markup:
<Form>
<Item>
<Icon name="user" color={colors.background} />
<Input placeholder="Username" />
</Item>
<Item last>
<Icon name="unlock" color={colors.charcoal} />
<Input placeholder="Password" />
</Item>
<Button full rounded style={styles.loginButton}>
<Text>Login</Text>
</Button>
</Form>
The Icon name=“user” does not work, however the icon with name=“unlock” is perfect. I want to use the icon from the EvilIcons namespace.
Referencing this error: https://github.com/react-native-training/react-native-elements/issues/183
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Invalid prop `name` of value `home-outline` supplied to `Icon ...
For android, I try to use 'home-outline' icon of ionicons import Icon from 'react-native-vector-icons/Ionicons'; ; but i have error Failed ...
Read more >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 · ReasonReact
Prop names like type (as in <input type="text" /> ) aren't syntactically valid; type is a reserved keyword in Reason/OCaml. Use <input type_="text"...
Read more >Invalid prop `name` of value `home-outline` supplied to `Icon
For android, I try to use 'home-outline' icon of ionicons import Icon from 'react-native-vector-icons/Ionicons'; <Icon name='home-outline' ...
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 use following official icons provide by Ionicons.
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
still exists
version:
"native-base": "^2.8.1"
@HaswinVidanage Fixed with NB 2.3.10