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

@nayan-ui/native

v2.0.3

Published

Component library for React Native.

Readme

Nayan UI for React Native

Component library for React Native, powered by HeroUI Native and Uniwind.

npm version TypeScript License


Features

  • 40+ high-quality components out of the box
  • Built on HeroUI Native & Uniwind for powerful styling
  • Written in TypeScript with predictable static types
  • Built-in dark mode with seamless switching
  • Works with Expo and bare React Native projects
  • Cross-platform compatibility for iOS and Android

Prerequisites

This library requires Uniwind to be set up in your project. Follow the Uniwind installation guide to configure it before proceeding.

Installation

npm install @nayan-ui/native uniwind heroui-native

Peer Dependencies

Install the required peer dependencies (most Expo projects already include these except react-native-worklets):

npm install react-native-reanimated react-native-gesture-handler react-native-safe-area-context react-native-screens react-native-svg react-native-worklets @gorhom/bottom-sheet

Configuration

1. Setup global CSS

Create a global.css file in your project:

@import 'tailwindcss';
@import 'uniwind';
@import 'heroui-native/styles';

@source '../node_modules/heroui-native/lib';
@source '../node_modules/@nayan-ui/native/src';

2. Add theme tokens

Add light/dark theme tokens to the same global.css:

@layer theme {
  :root {
    @variant light {
      --background: hsl(214 45% 92%);
      --foreground: hsl(222 47% 11%);
      --surface: hsl(0 0% 100%);
      --surface-foreground: hsl(222 47% 11%);
      --muted: hsl(215 16% 47%);
      --default: hsl(214 35% 90%);
      --default-foreground: hsl(222 47% 11%);
      --accent: hsl(217 91% 50%);
      --accent-foreground: hsl(0 0% 100%);
      --success: hsl(142 71% 45%);
      --warning: hsl(38 92% 50%);
      --danger: hsl(0 84% 60%);
      --danger-foreground: hsl(0 0% 100%);
      --border: hsl(214 35% 86%);
      --focus: hsl(217 91% 50%);
    }

    @variant dark {
      --background: hsl(222 47% 11%);
      --foreground: hsl(210 40% 98%);
      --surface: hsl(217 33% 22%);
      --surface-foreground: hsl(210 40% 98%);
      --muted: hsl(215 20% 65%);
      --default: hsl(217 33% 26%);
      --default-foreground: hsl(210 40% 98%);
      --accent: hsl(217 91% 60%);
      --accent-foreground: hsl(210 40% 98%);
      --success: hsl(142 71% 45%);
      --warning: hsl(38 92% 55%);
      --danger: hsl(0 72% 51%);
      --danger-foreground: hsl(210 40% 98%);
      --border: hsl(217 33% 28%);
      --focus: hsl(217 91% 60%);
    }
  }
}

3. Setup Metro config

const { getDefaultConfig } = require('@expo/metro-config');
const { withUniwindConfig } = require('uniwind/metro');

const config = getDefaultConfig(__dirname);

module.exports = withUniwindConfig(config, {
  cssEntryFile: './global.css'
});

4. Import global CSS in your app entry

import './global.css';

Usage

Wrap your app with the NTheme provider:

import { View } from 'react-native';
import { NButton, NText, NTheme, NThemeToggle, THEMES, useNTheme } from '@nayan-ui/native';
import './global.css';

export default function App() {
  const { isDarkMode, setTheme } = useNTheme();

  return (
    <NTheme>
      <View className="flex-1 justify-center items-center bg-background gap-4">
        <NText className="text-3xl font-bold text-foreground">Nayan UI</NText>
        <NText className="text-muted">React Native Component Library</NText>
        <NButton onPress={() => setTheme(isDarkMode ? THEMES.light : THEMES.dark)}>Toggle Theme</NButton>
        <NThemeToggle />
      </View>
    </NTheme>
  );
}

Components

NAccordion, NActionItem, NAlert, NAvatar, NButton, NButtonGroup, NCard, NCheck, NChip, NConfirm, NDatePicker, NDialog, NDivider, NInput, NInputGroup, NInputOtp, NLinkify, NLoading, NMenu, NMenuItem, NPopover, NPress, NProgress, NRadio, NRequired, NSelect, NSheet, NSkeleton, NSkeletonGroup, NSlider, NSwitch, NTabs, NTagGroup, NText, NTheme, NThemeToggle, NToast, NTooltip

Hooks

  • useNTheme — Access and toggle theme (isDarkMode, theme, setTheme)
  • useNKeyboard — Track keyboard visibility

Documentation

For detailed documentation, component APIs, examples, and guides, visit www.nayanui.com

Contributing

We welcome contributions! See the contribution guide to learn how to contribute to the repository and development workflow.

License

MIT