{"id":25489779,"url":"https://github.com/hugeicons/react-native","last_synced_at":"2026-04-27T16:31:17.020Z","repository":{"id":277734348,"uuid":"933138647","full_name":"hugeicons/react-native","owner":"hugeicons","description":"React Native implementation of Hugeicons - High-quality icon library optimized for mobile applications.","archived":false,"fork":false,"pushed_at":"2026-03-10T08:53:21.000Z","size":78,"stargazers_count":6,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-31T19:55:09.459Z","etag":null,"topics":["icons","mobile-ui","react-native","react-native-components","svg-icons"],"latest_commit_sha":null,"homepage":"https://hugeicons.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hugeicons.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-15T08:34:29.000Z","updated_at":"2026-03-10T08:53:25.000Z","dependencies_parsed_at":"2025-02-15T18:44:17.878Z","dependency_job_id":"4cc396be-c2d3-44e2-a301-925fee41d363","html_url":"https://github.com/hugeicons/react-native","commit_stats":null,"previous_names":["hugeicons/react-native"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hugeicons/react-native","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugeicons%2Freact-native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugeicons%2Freact-native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugeicons%2Freact-native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugeicons%2Freact-native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugeicons","download_url":"https://codeload.github.com/hugeicons/react-native/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugeicons%2Freact-native/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32345802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T23:26:28.701Z","status":"online","status_checked_at":"2026-04-27T02:00:06.769Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["icons","mobile-ui","react-native","react-native-components","svg-icons"],"created_at":"2025-02-18T21:17:51.547Z","updated_at":"2026-04-27T16:31:17.014Z","avatar_url":"https://github.com/hugeicons.png","language":"TypeScript","readme":"![Hugeicons Logo](https://raw.githubusercontent.com/hugeicons/react/main/assets/logo.png)\n\n# @hugeicons/react-native\n\n\u003e Hugeicons React Native rendering library for fast, customizable icons with TypeScript and tree-shaking support\n\n## What is Hugeicons?\n\nHugeicons is a large icon set for modern web and mobile apps. The free package includes 5,100+ Stroke Rounded icons. The Pro package provides 51,000+ icons across 10 styles.\n\n## How It Works\n\nThis package (`@hugeicons/react-native`) is a **rendering library** - it provides the `HugeiconsIcon` component that displays icons in your React Native app. The icons themselves come from separate icon packages:\n\n- **Free icons**: `@hugeicons/core-free-icons` (5,100+ icons)\n- **Pro icons**: `@hugeicons-pro/core-*` packages (51,000+ icons, requires license)\n\n### Key Highlights\n- **5,100+ Free Icons**: Stroke Rounded set for unlimited personal and commercial projects\n- **51,000+ Pro Icons, 10 Styles**: Stroke, Solid, Bulk, Duotone, and Twotone families for sharp, rounded, and standard needs with richer variants\n- **Pixel Perfect Grid**: Built on a 24x24 grid for crisp rendering at any size\n- **Customizable**: Easily adjust colors, sizes, and styles to match your design needs\n- **Tree Shaking Ready**: Named exports keep bundles lean in modern bundlers\n- **Regular Updates**: New icons added regularly to keep up with evolving design trends\n\n\n\u003e **Looking for Pro Icons?** Check out our docs at [hugeicons.com/docs](https://hugeicons.com/docs) for detailed information about pro icons, styles, and advanced usage.\n\n![Hugeicons Icons](https://raw.githubusercontent.com/hugeicons/react/main/assets/icons.png)\n\n## Table of Contents\n- [What is Hugeicons?](#what-is-hugeicons)\n- [How It Works](#how-it-works)\n- [Features](#features)\n- [Installation](#installation)\n  - [Expo Setup](#expo-setup)\n- [Usage](#usage)\n- [Props](#props)\n- [Examples](#examples)\n  - [Basic Usage](#basic-usage)\n  - [Custom Size and Color](#custom-size-and-color)\n  - [More examples and patterns](#more-examples-and-patterns)\n- [Performance](#performance)\n- [Troubleshooting](#troubleshooting)\n- [Platform Support](#platform-support)\n- [Related Packages](#related-packages)\n- [Pro Version](#pro-version)\n- [License](#license)\n- [Related](#related)\n\n## Features\n\n- Customizable colors, sizes, and stroke width\n- TypeScript support with full type definitions\n- Tree shakeable builds (ESM, CJS) for bundlers like Metro\n- Native SVG rendering via react-native-svg for optimal performance\n- Optimized SVGs for small payloads and fast render\n- Alternate icon support for dynamic interactions\n- NativeWind support for Tailwind CSS styling\n\n## Installation\n\n```bash\n# Using npm\nnpm install @hugeicons/react-native @hugeicons/core-free-icons react-native-svg\n\n# Using yarn\nyarn add @hugeicons/react-native @hugeicons/core-free-icons react-native-svg\n\n# Using pnpm\npnpm add @hugeicons/react-native @hugeicons/core-free-icons react-native-svg\n\n# Using bun\nbun add @hugeicons/react-native @hugeicons/core-free-icons react-native-svg\n```\n\nNote: This package requires `react-native-svg` as a peer dependency. Some frameworks like Expo handle this automatically. For bare React Native projects, follow the [react-native-svg installation instructions](https://github.com/react-native-svg/react-native-svg#installation).\n\n### Expo Setup\n\nIf you're using **Expo** and experiencing issues with TypeScript autocomplete (no icon import suggestions or prop autocomplete), add this to your `tsconfig.json`:\n\n```json\n{\n  \"compilerOptions\": {\n    \"types\": [\"@hugeicons/core-free-icons\", \"@hugeicons/react-native\"]\n  }\n}\n```\nThis is due to Expo's TypeScript configuration using `moduleResolution: \"bundler\"` which requires explicit type hints for large packages. This is not needed for plain React Native projects.\n\n## Usage\n\n```jsx\nimport { HugeiconsIcon } from '@hugeicons/react-native';\nimport { SearchIcon } from '@hugeicons/core-free-icons';\n\nfunction App() {\n  return (\n    \u003cHugeiconsIcon\n      icon={SearchIcon}\n      size={24}\n      color=\"black\"\n      strokeWidth={1.5}\n    /\u003e\n  );\n}\n```\n\n## Props\n\n| Prop | Type | Default | Description |\n|------|------|---------|-------------|\n| `icon` | `IconSvgElement` | Required | The main icon to display |\n| `altIcon` | `IconSvgElement` | - | Alternative icon for states, interactions, or dynamic icon swapping |\n| `showAlt` | `boolean` | `false` | When true, displays the altIcon instead of the main icon |\n| `size` | `number \\| string` | `24` | Icon size in pixels |\n| `color` | `string` | `black` | Icon color |\n| `strokeWidth` | `number` | - | Width of the icon strokes |\n| `absoluteStrokeWidth` | `boolean` | `false` | When true, the stroke width will be scaled relative to the icon size |\n| `className` | `string` | - | NativeWind classes for styling (requires NativeWind) |\n\n## Examples\n\n### Basic Usage\n```jsx\nimport React from 'react';\nimport { View } from 'react-native';\nimport { HugeiconsIcon } from '@hugeicons/react-native';\nimport { SearchIcon } from '@hugeicons/core-free-icons';\n\nfunction BasicExample() {\n  return (\n    \u003cView\u003e\n      \u003cHugeiconsIcon icon={SearchIcon} /\u003e\n    \u003c/View\u003e\n  );\n}\n```\n\n### Custom Size and Color\n```jsx\nimport React from 'react';\nimport { View } from 'react-native';\nimport { HugeiconsIcon } from '@hugeicons/react-native';\nimport { NotificationIcon } from '@hugeicons/core-free-icons';\n\nfunction CustomExample() {\n  return (\n    \u003cView\u003e\n      \u003cHugeiconsIcon\n        icon={NotificationIcon}\n        size={32}\n        color=\"#FF5733\"\n      /\u003e\n    \u003c/View\u003e\n  );\n}\n```\n\n### More examples and patterns\n\n- Examples: https://hugeicons.com/docs/integrations/react-native/examples\n- Best practices: https://hugeicons.com/docs/integrations/react-native/best-practices\n\n## Performance\n\n- **Tree-shaking**: The package is fully tree-shakeable, ensuring only the icons you use are included in your final bundle\n- **Native SVG Rendering**: Uses react-native-svg for optimal performance\n- **Optimized SVGs**: All icons are optimized for size and performance\n- **Code Splitting**: Icons can be easily code-split when using dynamic imports\n\n## Troubleshooting\n\n### Common Issues\n\n1. **Icons not showing up?**\n   - Make sure you've installed both `@hugeicons/react-native` and `@hugeicons/core-free-icons`\n   - Verify that `react-native-svg` is properly installed and linked\n   - Check that the icon names are correctly imported\n\n2. **TypeScript errors?**\n   - Ensure your `tsconfig.json` includes the necessary type definitions\n   - Check that you're using the latest version of the package\n\n3. **Bundle size concerns?**\n   - Use named imports instead of importing the entire icon set\n   - Implement code splitting for different sections of your app\n\n4. **Android/iOS specific issues?**\n   - Make sure you've followed platform-specific setup for react-native-svg\n   - Check platform-specific color values are valid\n\n## Platform Support\n\nThe library supports both iOS and Android through react-native-svg.\n\n## Related Packages\n\n- [@hugeicons/react](https://www.npmjs.com/package/@hugeicons/react) - React component\n- [@hugeicons/vue](https://www.npmjs.com/package/@hugeicons/vue) - Vue component\n- [@hugeicons/angular](https://www.npmjs.com/package/@hugeicons/angular) - Angular component\n- [@hugeicons/svelte](https://www.npmjs.com/package/@hugeicons/svelte) - Svelte component\n\n## Pro Version\n\n\u003e **Want access to 51,000+ icons and 10 unique styles?**\n\u003e Check out our [Pro Version](https://hugeicons.com/pricing) and visit our [docs](https://hugeicons.com/docs) for detailed documentation.\n\n### Available Pro Styles\n- **Stroke Styles**\n  - Stroke Rounded (`@hugeicons-pro/core-stroke-rounded`)\n  - Stroke Sharp (`@hugeicons-pro/core-stroke-sharp`)\n  - Stroke Standard (`@hugeicons-pro/core-stroke-standard`)\n- **Solid Styles**\n  - Solid Rounded (`@hugeicons-pro/core-solid-rounded`)\n  - Solid Sharp (`@hugeicons-pro/core-solid-sharp`)\n  - Solid Standard (`@hugeicons-pro/core-solid-standard`)\n- **Special Styles**\n  - Bulk Rounded (`@hugeicons-pro/core-bulk-rounded`)\n  - Duotone Rounded (`@hugeicons-pro/core-duotone-rounded`)\n  - Duotone Standard (`@hugeicons-pro/core-duotone-standard`)\n  - Twotone Rounded (`@hugeicons-pro/core-twotone-rounded`)\n\n## License\n\nThe code in this package (`@hugeicons/react-native`) is licensed under the MIT License.\n\nThis package only provides rendering utilities. It does not include or grant any rights to Hugeicons icon assets. Using Pro icon styles requires a valid Hugeicons Pro license.\n\nHugeicons icon packs are licensed separately:\n- **Free icon packs**: use the license included with the specific free icon package you install.\n- **Pro icon packs (`@hugeicons-pro/*`)**: require a paid Hugeicons Pro license and are governed by the Hugeicons Pro Terms (see [Pro License](PRO-LICENSE.md).).\n\n\n## Related\n\n- [Changelog](CHANGELOG.md) - Version history and release notes\n- [@hugeicons/core-free-icons](https://www.npmjs.com/package/@hugeicons/core-free-icons) - Free icon package\n- [Hugeicons Website](https://hugeicons.com) - Browse all available icons\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugeicons%2Freact-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugeicons%2Freact-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugeicons%2Freact-native/lists"}