MetaMask / MetaMask/metamask-design-system
Consider font-based approach for rendering icons in the app
@kirillzyusko is already working on this.
Since Apr 28, 2026.
- Dominant language
- TypeScript
- Stars
- 37
- Forks
- 14
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 60
Description
Description
At the moment we are using react-native-svg for rendering icons. It's simple, but simplicity has its own cost and this cost is performance.
When we render SVG we:
- create multiple components (G, Circle, etc.) in React tree
- react reconciles them
- after reconciliation all these components are rendered on native (sometimes path property are big and it takes some time to serialize them).
In this issue I'm proposing to consider font-based approach for rendering single-color icons (we have a plenty of them).
It may be a little bit harder to set everything up, but then instead of complex rendering pipeline we will simply render one character (which will be super fast).
We can also create FastIcon component and make migration step-by-step.
Technical Details
We can generate custom font where unicode symbols will be represented as our icons. We can use react-native-vector-icons (with custom fontello font). Or consider to use https://github.com/software-mansion-labs/react-native-nano-icons
Acceptance Criteria
- Check app performance metrics
- Assure no UI regressions are made
References
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.