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

liquid-glass-tabs

v0.1.0

Published

iOS style Global Navigation Bar library

Readme

Liquid Glass Tabs

iOS-style Global Navigation Bar library with glass-morphism effect for React Native and Expo Router.

Features

  • 🎨 Glass-Morphism Design: Beautiful blur effect using expo-blur
  • 📱 iOS Native Support: Uses native iOS tabs via Expo Router when available
  • 🤖 Android Compatible: Fallback custom implementation for Android
  • Expo Router Integration: First-class support for Expo Router v6+
  • 🎯 TypeScript Support: Full type safety with TypeScript
  • 🔧 Customizable: Props for icons, labels, and navigation behavior
  • 📦 Lightweight: Minimal dependencies, optimized performance

Installation

npm install liquid-glass-tabs
# or
pnpm add liquid-glass-tabs
# or
yarn add liquid-glass-tabs

Prerequisites

This library requires the following peer dependencies:

npm install expo expo-router expo-blur @react-navigation/bottom-tabs @react-native-community/blur react-native-safe-area-context @expo/vector-icons

Quick Start

Basic Usage with Expo Router

import { LiquidGlassTabs } from 'liquid-glass-tabs';

export default function Layout() {
  return (
    <LiquidGlassTabs
      tabs={[
        {
          name: 'home',
          label: 'Home',
          icon: {
            sf: {
              default: 'house',
              selected: 'house.fill',
            },
          },
        },
        {
          name: 'search',
          label: 'Search',
          icon: {
            sf: {
              default: 'magnifyingglass',
              selected: 'magnifyingglass.fill',
            },
          },
        },
        {
          name: 'profile',
          label: 'Profile',
          icon: {
            sf: {
              default: 'person',
              selected: 'person.fill',
            },
          },
        },
      ]}
    />
  );
}

API Documentation

LiquidGlassTabs Component

The main component that provides platform-aware tab navigation.

Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | tabs | TabItem[] | Required | Array of tab configurations | | useNativeIOS | boolean | true | Use native iOS tabs when available |

TabItem Interface

interface TabItem {
  name: string; // Unique identifier (route name)
  label: string; // Display label
  icon?: {
    sf: {
      default: string; // SF Symbol name (default state)
      selected: string; // SF Symbol name (selected state)
    };
    ionicon?: {
      // Optional Ionicon fallback
      default: any;
      selected: any;
    };
  };
}

CustomTabBar Component

Exported for custom implementations. Provides glass-morphism tab bar styling.

import { CustomTabBar } from 'liquid-glass-tabs';

Platform-Specific Behavior

iOS

  • Native Tabs (default): Uses Expo Router's native iOS tabs for best native feel
  • Custom Tabs: Falls back to custom glass-morphism implementation when useNativeIOS={false}

Android

  • Always uses the custom CustomTabBar component with glass-morphism effect

Web

  • Uses custom CustomTabBar for consistent cross-platform appearance

Example

See the example/ directory for a complete working example with Expo Router:

cd example
pnpm install
pnpm start

The example includes:

  • 5-tab navigation setup with Expo Router
  • Custom icon components
  • Home, Search, Notifications, Profile, and Settings screens
  • Glass-morphism styling demonstration

Styling

The tab bar uses platform-specific styling:

  • iOS: Native shadows and effects
  • Android: Material Design elevation
  • BlurView: Semi-transparent background with expo-blur integration

Customization

For custom styling, you can extend the CustomTabBar component or use the library's exported types and components.

Project Structure

src/
├── index.tsx          # Main LiquidGlassTabs component (platform selector)
└── CustomTabBar.tsx   # Cross-platform glass-morphism tab bar

TypeScript Support

Full TypeScript support with strict mode enabled:

import { LiquidGlassTabs } from 'liquid-glass-tabs';
import type { TabItem } from 'liquid-glass-tabs';

const tabs: TabItem[] = [
  {
    name: 'home',
    label: 'Home',
    icon: { sf: { default: 'house', selected: 'house.fill' } },
  },
];

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Code of Conduct

Please read CODE_OF_CONDUCT.md to understand our community standards.

License

MIT © 2025 Antigravity