NativeIcon
NativeIcon — an icon by what it is for ("settings", "bell"), not by a library's name. On iOS it draws the SF Symbol (expo-symbols' `SymbolView`, passed as `modules.symbol`); on Android and web, and as the SF Symbol's fallback, it draws the icon set given as `modules.icons` (`lucideIcons` from `@marktiderman/genesis-ui-native/icons/lucide`). With neither, it keeps the icon's space empty and warns once in development. Decorative by default (hidden from screen readers). Give `label` when the icon carries meaning on its own, such as an icon-only button's content.
packages/ui-native/src/components/icon.tsx
Import
Subpath export:
@marktiderman/genesis-ui-nativeimport { NativeIcon } from "@marktiderman/genesis-ui-native";Components
Auto-generated from TypeScript source via
react-docgen-typescript.NativeIcon
| Prop | Type | Default | Description |
|---|---|---|---|
| name* | enum | — | |
| color | ____ColorValue_Internal | — | Default the theme's label color. |
| label | string | — | Read by screen readers. Without it the icon is decorative and hidden from them. |
| size | number | 20 | Points. Default 20. |
| testID | string | — | |
| weight | enum | — | iOS SF Symbol weight. |