Skip to content

heroicons-animated/heroicons-animated-react-native

Repository files navigation

heroicons-animated-react-native

316 beautifully animated Heroicons for React Native, powered by react-native-reanimated.

A React Native port of heroicons-animated.

npm version license


Repository Structure

├── packages/react-native/   # Publishable @heroicons-animated/react-native npm package
├── app/                      # Expo demo app (icon showcase)
├── components/               # Demo app UI components
├── constants/                # Demo app constants (icon list, theme, site config)
├── scripts/                  # Icon generation script
└── assets/                   # App icons and splash screen

Quick Start

Install the package

pnpm add @heroicons-animated/react-native

Use in your app

import { HeartIcon, BellIcon, StarIcon } from "@heroicons-animated/react-native";

export default function App() {
  return (
    <View style={{ flexDirection: "row", gap: 16 }}>
      <HeartIcon size={32} color="#ef4444" />
      <BellIcon size={32} color="#6366f1" />
      <StarIcon size={32} color="#eab308" />
    </View>
  );
}

See packages/react-native/README.md for full documentation.

Development

Prerequisites

  • Node.js 18+
  • pnpm 9+
  • Expo CLI
  • iOS Simulator / Android Emulator (or physical device via Expo Go)

Setup

# Clone the repo
git clone https://github.com/heroicons-animated/heroicons-animated-react-native.git
cd heroicons-animated-react-native

# Install dependencies
pnpm install

# Start the demo app
pnpm start

Run the Demo App

# iOS Simulator
pnpm ios

# Android Emulator
pnpm android

# Web (Expo Web)
pnpm web

Regenerating Icons

If the upstream heroicons-animated library adds new icons:

# Clone the upstream repo (one-time)
git clone --depth 1 https://github.com/heroicons-animated/heroicons-animated.git /tmp/heroicons-animated-upstream

# Run the generation script
pnpm generate-icons

Building the Package

cd packages/react-native
pnpm build

Publishing

cd packages/react-native
npm publish --access public

EAS Build (Expo Cloud)

# Preview build (internal testing)
eas build --profile preview --platform all

# Production build
eas build --profile production --platform all

Credits

License

MIT — free for personal and commercial use.

Releases

No releases published

Packages

 
 
 

Contributors