[Avatar] icon -> type prop should default to 'material', not 'font-awesome'
See original GitHub issueEvery other component that uses <Icon />
, including the <Icon />
component itself, uses material
as the default icon library if no type
is specified. Avatar should be no different.
See: https://github.com/react-native-training/react-native-elements/blob/master/src/avatar/Avatar.js#L100
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Font Awesome Icons in material-ui Button - Stack Overflow
I tried the first one as in the link but I get an error like "TypeError: Cannot read property 'icon' of undefined" Can...
Read more >Avatar - React Native Elements
Displays an icon as the main content of the Avatar. Cannot be used alongside title. When used with the source prop it will...
Read more >FontAwesome v5? · Issue #1338 · react-native-elements/react ...
I cannot find anything concerning FontAwesome v5. ... FontAwesome5 from 'react-native-vector-icons/FontAwesome5'; export default props => { if (props.type ...
Read more >React Icon Component - Material UI - MUI
To import the icon component with a theme other than the default, append the theme name to the icon name. For example @mui/icons-material/Delete...
Read more >How To Use Font Awesome icons in Angular Applications
In this tutorial I will explain how to use Font Awesome icons in Angular applications using @fortawesome/angular-fontawesome package.
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 Free
Top 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
Updated the docs here: https://github.com/react-native-training/react-native-elements/pull/438/commits/68261c1b03bace071e5abbd485cd76ae651008ba
@gsklee good catch. Will do so soon. Thanks.