React Native MantineMiscellaneous

Icon

FontAwesome icon component

Import: import { Icon } from 'react-native-mantine';

Usage

import { Icon } from 'react-native-mantine';

<Icon name="heart" size={24} color="#e03131" />
<Icon name="home" size={24} useThemeColor />

Props

PropTypeDefaultDescription
name (required)stringIcon name from FontAwesome icon set (e.g., "heart", "star", "user", "cog")
sizenumber16Icon size in pixels
colorstringIcon color as a hex code or color name. If useThemeColor is true, this will be overridden
useThemeColorbooleanfalseIf true, uses theme-based color (dark mode: light color, light mode: dark color)
allowFontScalingbooleanfalseWhether to allow font scaling based on device accessibility settings
styleTextStyleAdditional styles to apply to the icon

Source on GitHub · npm