react-native-materialcommunity-icons
v1.0.0-beta.0
Published
FontAwesome Icons in SVG format for use in react-native
Readme
react-native-materialcommunity-icons
When only using a few icons, more efficient to use svg files instead of a font.
import { Home } from 'react-native-materialcommunity-icons';
const Example = () => (
<View style={{ flexDirection: 'row', backgroundColor: 'black' }}>
<SvgYoutube size={48} color="#ff0000" />
</View>
);Install
yarn add react-native-materialcommunity-icons react-native-svg
Search Material Community Icons
Search Material Community Icons list to see available svg files.
Components
Names are mapped from Material Community's website. The names map from snake case to PascalCase. All Icons are prefixed with Svg.
youtubebecomes<SvgYoutube />screwdriver-wrenchbecomes<SvgScrewdriverWrench />0becomes<Svg0 />
Properties
color: light='#000000', dark='#ffffff'Color of icon in
#rrggbbformat. The default is based on Appearance.getColorScheme().size: Default is 24.Width and height of icon.
fillOpacity: Default = 1This prop specifies the opacity of the color or the content the current object is filled with.
