SmacIcon

Component for rendering icons from the custom `smartac-icons.ttf` font. It supports dynamic sizing and styling via props

Usage

import { SmacIcon } from '@smartacteam/react-native-ui';

<SmacIcon 
  name='verified-smac'
  size_md
  text_base_accent
/>

Props

PropTypeDescription
nameIconNameName of the icon to render, based on font metadata
size_*IconSizeSizing flags like size_sm, size_md, etc.
...inheritedTextProps, BaseSmacTextStylingAll other inherited props

IconName

The name prop must be one of the predefined icon names exported from the icon font config. You can find the list of available icons here: Icons

IconSize

Size can be passed via one of the prefixed props:

  • size_sm
  • size_md
  • size_lg
  • etc.

These map to font sizes defined in SizeScaleIcon.


Notes

  • If an icon name is not found, the fallback Unicode character (U+FFFD) is shown.
  • The font must be properly linked and registered in your React Native project (Installation).