# oblador/react-native-vector-icons architecture

> Architecture diagram of the GitHub repository oblador/react-native-vector-icons, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/oblador/react-native-vector-icons
- Repository: https://github.com/oblador/react-native-vector-icons

## Overview

React Native Vector Icons provides reusable icon-font components and glyph sets for React Native, plus an icon directory and explorer. The user workflow is to browse or search glyphs, select an icon set and name, then render a styled icon inline or obtain an image source; custom fonts and dynamic loading are additional documented capabilities. The explorer navigation and its principal views are shown in excerpts. Shared runtime internals and several capability branches are represented from README and tree evidence; their internal call paths were not sampled.

Main entry points: [`packages`](https://github.com/oblador/react-native-vector-icons/tree/master/packages) (Icon set families), [`apps/icon-explorer/src/App.tsx`](https://github.com/oblador/react-native-vector-icons/blob/master/apps/icon-explorer/src/App.tsx) (Explorer navigation), [`apps/icon-explorer/src/Home.tsx`](https://github.com/oblador/react-native-vector-icons/blob/master/apps/icon-explorer/src/Home.tsx) (Explorer home), [`packages/common/src/create-icon-set.tsx`](https://github.com/oblador/react-native-vector-icons/blob/master/packages/common/src/create-icon-set.tsx) (Icon component runtime)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_apps["Icon discovery apps"]
  node_explorer["Explorer navigation<br/>[App.tsx]"]
  node_home["Explorer home<br/>[Home.tsx]"]
  node_setlist["Set registry<br/>[IconSets.tsx]"]
  node_glyphlist["Glyph search<br/>[IconList.tsx]"]
  node_testmode["Set test mode<br/>[TestMode.tsx]"]
  node_customfonts["Custom font examples<br/>[CustomFonts.ts]"]
  node_directory["Web icon directory<br/>[App.tsx]"]
end

subgraph group_runtime["Icon rendering runtime"]
  node_common["Icon component runtime"]
  node_fontcache["Icon source cache"]
  node_defaults["Icon defaults<br/>[defaults.ts]"]
  node_dynloading["Dynamic font loading"]
  node_dynsettings["Loading settings"]
  node_imagehelper["Image source helpers"]
  node_assetregistry["Asset registry<br/>[asset-registry.ts]"]
end

subgraph group_sets["Icon set packages"]
  node_glyphsets["Icon set families"]
  node_generator["Custom set generator<br/>[index.ts]"]
end

subgraph group_extensions["Font and image extensions"]
  node_getimage["Native image rendering<br/>[index.ts]"]
end

node_user(("App developer"))
node_external(("React Native app"))

node_user -->|"opens"| node_explorer
node_explorer -->|"renders"| node_home
node_explorer -->|"renders"| node_glyphlist
node_explorer -->|"renders"| node_testmode
node_home -->|"reads sets"| node_setlist
node_glyphlist -->|"filters glyphs"| node_setlist
node_testmode -->|"uses examples"| node_customfonts
node_user -->|"searches"| node_directory
node_directory -.->|"searches names"| node_glyphsets
node_user -.->|"uses icons"| node_external
node_external -.->|"selects set"| node_glyphsets
node_glyphsets -.->|"builds icons"| node_common
node_generator -.->|"generates sets"| node_glyphsets
node_common -.->|"caches sources"| node_fontcache
node_common -.->|"uses defaults"| node_defaults
node_common -.->|"loads fonts"| node_dynloading
node_dynloading -.->|"checks settings"| node_dynsettings
node_home -->|"renders images"| node_getimage
node_home -->|"renders text images"| node_imagehelper
node_imagehelper -.->|"resolves assets"| node_assetregistry
node_glyphsets -.->|"supports image output"| node_getimage
node_user -.->|"creates custom set"| node_generator

click node_explorer "https://github.com/oblador/react-native-vector-icons/blob/master/apps/icon-explorer/src/App.tsx"
click node_home "https://github.com/oblador/react-native-vector-icons/blob/master/apps/icon-explorer/src/Home.tsx"
click node_setlist "https://github.com/oblador/react-native-vector-icons/blob/master/apps/icon-explorer/src/IconSets.tsx"
click node_glyphlist "https://github.com/oblador/react-native-vector-icons/blob/master/apps/icon-explorer/src/IconList.tsx"
click node_testmode "https://github.com/oblador/react-native-vector-icons/blob/master/apps/icon-explorer/src/TestMode.tsx"
click node_customfonts "https://github.com/oblador/react-native-vector-icons/blob/master/apps/icon-explorer/src/CustomFonts.ts"
click node_directory "https://github.com/oblador/react-native-vector-icons/blob/master/apps/directory/src/App.tsx"
click node_common "https://github.com/oblador/react-native-vector-icons/blob/master/packages/common/src/create-icon-set.tsx"
click node_fontcache "https://github.com/oblador/react-native-vector-icons/blob/master/packages/common/src/create-icon-source-cache.ts"
click node_defaults "https://github.com/oblador/react-native-vector-icons/blob/master/packages/common/src/defaults.ts"
click node_dynloading "https://github.com/oblador/react-native-vector-icons/blob/master/packages/common/src/dynamicLoading/dynamic-font-loading.ts"
click node_dynsettings "https://github.com/oblador/react-native-vector-icons/blob/master/packages/common/src/dynamicLoading/dynamic-loading-setting.ts"
click node_glyphsets "https://github.com/oblador/react-native-vector-icons/tree/master/packages"
click node_generator "https://github.com/oblador/react-native-vector-icons/blob/master/packages/generator-react-native-vector-icons/src/app/index.ts"
click node_getimage "https://github.com/oblador/react-native-vector-icons/blob/master/packages/get-image/src/index.ts"
click node_imagehelper "https://github.com/oblador/react-native-vector-icons/blob/master/packages/common/src/get-image-source.ts"
click node_assetregistry "https://github.com/oblador/react-native-vector-icons/blob/master/packages/common/src/dynamicLoading/asset-registry.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_explorer,node_home,node_setlist,node_glyphlist,node_testmode,node_customfonts,node_directory toneBlue
class node_common,node_fontcache,node_defaults,node_dynloading,node_dynsettings,node_imagehelper,node_assetregistry toneAmber
class node_glyphsets,node_generator toneMint
class node_getimage toneRose
class node_user,node_external toneIndigo
```

## Components

### Icon discovery apps

- [Explorer navigation](https://github.com/oblador/react-native-vector-icons/blob/master/apps/icon-explorer/src/App.tsx): `apps/icon-explorer/src/App.tsx`
- [Explorer home](https://github.com/oblador/react-native-vector-icons/blob/master/apps/icon-explorer/src/Home.tsx): `apps/icon-explorer/src/Home.tsx`
- [Set registry](https://github.com/oblador/react-native-vector-icons/blob/master/apps/icon-explorer/src/IconSets.tsx): `apps/icon-explorer/src/IconSets.tsx`
- [Glyph search](https://github.com/oblador/react-native-vector-icons/blob/master/apps/icon-explorer/src/IconList.tsx): `apps/icon-explorer/src/IconList.tsx`
- [Set test mode](https://github.com/oblador/react-native-vector-icons/blob/master/apps/icon-explorer/src/TestMode.tsx): `apps/icon-explorer/src/TestMode.tsx`
- [Custom font examples](https://github.com/oblador/react-native-vector-icons/blob/master/apps/icon-explorer/src/CustomFonts.ts): `apps/icon-explorer/src/CustomFonts.ts`
- [Web icon directory](https://github.com/oblador/react-native-vector-icons/blob/master/apps/directory/src/App.tsx): `apps/directory/src/App.tsx`

### Icon rendering runtime

- [Icon component runtime](https://github.com/oblador/react-native-vector-icons/blob/master/packages/common/src/create-icon-set.tsx): `packages/common/src/create-icon-set.tsx`
- [Icon source cache](https://github.com/oblador/react-native-vector-icons/blob/master/packages/common/src/create-icon-source-cache.ts): `packages/common/src/create-icon-source-cache.ts`
- [Icon defaults](https://github.com/oblador/react-native-vector-icons/blob/master/packages/common/src/defaults.ts): `packages/common/src/defaults.ts`
- [Dynamic font loading](https://github.com/oblador/react-native-vector-icons/blob/master/packages/common/src/dynamicLoading/dynamic-font-loading.ts): `packages/common/src/dynamicLoading/dynamic-font-loading.ts`
- [Loading settings](https://github.com/oblador/react-native-vector-icons/blob/master/packages/common/src/dynamicLoading/dynamic-loading-setting.ts): `packages/common/src/dynamicLoading/dynamic-loading-setting.ts`
- [Image source helpers](https://github.com/oblador/react-native-vector-icons/blob/master/packages/common/src/get-image-source.ts): `packages/common/src/get-image-source.ts`
- [Asset registry](https://github.com/oblador/react-native-vector-icons/blob/master/packages/common/src/dynamicLoading/asset-registry.ts): `packages/common/src/dynamicLoading/asset-registry.ts`

### Icon set packages

- [Icon set families](https://github.com/oblador/react-native-vector-icons/tree/master/packages): `packages`
- [Custom set generator](https://github.com/oblador/react-native-vector-icons/blob/master/packages/generator-react-native-vector-icons/src/app/index.ts): `packages/generator-react-native-vector-icons/src/app/index.ts`

### Font and image extensions

- [Native image rendering](https://github.com/oblador/react-native-vector-icons/blob/master/packages/get-image/src/index.ts): `packages/get-image/src/index.ts`

### Other components

- **App developer**
- **React Native app**

## Connections

- App developer → Explorer navigation: opens (evidence: `apps/icon-explorer/src/App.tsx`)
- Explorer navigation → Explorer home: renders (evidence: `apps/icon-explorer/src/App.tsx`)
- Explorer navigation → Glyph search: renders (evidence: `apps/icon-explorer/src/App.tsx`)
- Explorer navigation → Set test mode: renders (evidence: `apps/icon-explorer/src/App.tsx`)
- Explorer home → Set registry: reads sets (evidence: `apps/icon-explorer/src/Home.tsx`)
- Glyph search → Set registry: filters glyphs (evidence: `apps/icon-explorer/src/IconList.tsx`)
- Set test mode → Custom font examples: uses examples (evidence: `apps/icon-explorer/src/TestMode.tsx`)
- App developer → Web icon directory: searches (evidence: `apps/directory/src/App.tsx`)
- Web icon directory → Icon set families: searches names
- App developer → React Native app: uses icons (evidence: `README.md`)
- React Native app → Icon set families: selects set (evidence: `README.md`)
- Icon set families → Icon component runtime: builds icons
- Custom set generator → Icon set families: generates sets
- Icon component runtime → Icon source cache: caches sources
- Icon component runtime → Icon defaults: uses defaults
- Icon component runtime → Dynamic font loading: loads fonts
- Dynamic font loading → Loading settings: checks settings
- Explorer home → Native image rendering: renders images (evidence: `apps/icon-explorer/src/Home.tsx`)
- Explorer home → Image source helpers: renders text images (evidence: `apps/icon-explorer/src/Home.tsx`)
- Image source helpers → Asset registry: resolves assets
- Icon set families → Native image rendering: supports image output (evidence: `README.md`)
- App developer → Custom set generator: creates custom set
