npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-solar-icons

v2.1.0

Published

Beautiful Solar icon set for React Native and Expo - 1500+ premium SVG icons in 6 styles

Readme

react-native-solar-icons

Beautiful Solar icon set for React Native and Expo - 1200+ premium SVG icons in 6 different styles.

npm version license

✨ Features

  • 🎨 6 Icon Styles: Bold, Bold Duotone, Broken, Line Duotone, Linear, Outline
  • 📦 1200+ Icons across 35+ categories
  • 🎯 Full TypeScript Support with complete type definitions
  • 📱 React Native & Expo compatible out of the box
  • 🎨 Customizable colors and sizes via props
  • 🌈 Duotone Support with primary and secondary colors

📦 Installation

Using npm

npm install react-native-solar-icons react-native-svg

Using Yarn

yarn add react-native-solar-icons react-native-svg

Expo

npx expo install react-native-solar-icons react-native-svg

Note: This package requires react-native-svg as a peer dependency.

🚀 Quick Start

Option 1: Direct Import (Recommended - Tree-shakeable)

Import individual icons directly for the smallest bundle size:

import { Home, ArrowDown, Heart } from "react-native-solar-icons/icons/linear";
import { Star } from "react-native-solar-icons/icons/bold";
import { Home as HomeDuotone } from "react-native-solar-icons/icons/bold-duotone";

function App() {
  return (
    <>
      {/* Basic usage */}
      <Home width={24} height={24} color="#000000" />

      {/* With custom size and color */}
      <ArrowDown width={32} height={32} color="#3b82f6" />

      {/* Bold style */}
      <Heart width={24} height={24} color="#ef4444" />

      {/* Duotone with primary and secondary colors */}
      <HomeDuotone
        width={32}
        height={32}
        primaryColor="#000000"
        secondaryColor="#999999"
      />
    </>
  );
}

Available style imports:

  • react-native-solar-icons/icons/linear
  • react-native-solar-icons/icons/bold
  • react-native-solar-icons/icons/outline
  • react-native-solar-icons/icons/broken
  • react-native-solar-icons/icons/bold-duotone
  • react-native-solar-icons/icons/line-duotone

Option 2: Using SolarIcon Component

Unified API for runtime icon selection (larger bundle):

import { SolarIcon } from "react-native-solar-icons";

function App() {
  return (
    <>
      {/* Basic usage - defaults to "linear" style */}
      <SolarIcon name="Home" />

      {/* With size and color */}
      <SolarIcon name="ArrowDown" size={32} color="#3b82f6" />

      {/* Different icon styles */}
      <SolarIcon name="Heart" type="bold" size={24} color="#ef4444" />
      <SolarIcon name="Star" type="outline" size={28} color="#f59e0b" />

      {/* Duotone icons with two colors */}
      <SolarIcon
        name="Home"
        type="bold-duotone"
        size={32}
        primaryColor="#000000"
        secondaryColor="#999999"
      />
    </>
  );
}

SolarIcon Props

| Prop | Type | Default | Description | | ---------------- | ----------- | ----------- | ----------------------------------------- | | name | IconName | required | The icon name (e.g., "Home", "ArrowDown") | | type | IconStyle | "linear" | Icon style variant | | size | number | 24 | Icon width and height | | color | string | "#000000" | Icon color (shorthand for primaryColor) | | primaryColor | string | - | Primary icon color | | secondaryColor | string | - | Secondary color (for duotone icons) |

Plus all standard react-native-svg SvgProps.

Available Icon Styles

| Style | Type Value | Description | | ------------ | ---------------- | ------------------------------ | | Bold | "bold" | Filled, solid icons | | Bold Duotone | "bold-duotone" | Two-color filled icons | | Broken | "broken" | Broken/interrupted line icons | | Line Duotone | "line-duotone" | Two-color outlined icons | | Linear | "linear" | Clean outlined icons (default) | | Outline | "outline" | Simple outline icons |

� Bundle Size & Tree-Shaking

Direct imports are recommended for optimal bundle size:

  • ~700 bytes per icon when using direct imports (e.g., from "react-native-solar-icons/icons/linear")
  • ⚠️ ~145MB when importing from main entry (from "react-native-solar-icons")

The library is built with preserveModules to enable proper tree-shaking. Modern bundlers (Metro, Webpack, etc.) will only include the icons you actually import.

Example bundle impact:

// ✅ Optimal - Only ~2KB added to bundle
import { Home, Heart } from "react-native-solar-icons/icons/linear";

// ⚠️ Not recommended - Includes all icons
import { SolarIcon } from "react-native-solar-icons";

�📚 TypeScript Support

The library provides full TypeScript support with:

  • IconName - Union type of all available icon names
  • IconStyle - Union type of all style variants
  • SolarIconProps - Props interface for the SolarIcon component
  • IconProps - Base props for individual icon components
import type {
  IconName,
  IconStyle,
  SolarIconProps,
} from "react-native-solar-icons";

// Type-safe icon names
const iconName: IconName = "Home";
const style: IconStyle = "bold-duotone";

🎨 Icon Categories

Icons are organized into categories including:

  • Arrows & Navigation
  • Business & Statistics
  • Communication & Messages
  • Design Tools
  • Electronic Devices
  • Essential UI
  • Files & Folders
  • Home & Furniture
  • Maps & Location
  • Media & Sound
  • Nature & Weather
  • Security & Privacy
  • Shopping & E-commerce
  • Social & Users
  • And many more...

🔧 Development

Building from source

# Install dependencies
npm install

# Generate icon components from SVGs
npm run codegen

# Build the library
npm run build

Adding new icons

  1. Add SVG files to the appropriate icons/<Style>/<Category>/ folder
  2. Run npm run codegen to regenerate components
  3. Run npm run build to rebuild the library

📄 License

MIT License - see LICENSE for details.

🙏 Credits

Based on the Solar Icon Set by 480 Design.