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

@k-workspace/react-native-liquidglass-view

v0.1.1

Published

iOS 26 Liquid Glass effect for React Native — UIGlassEffect with configurable styles, shadows, press animations, and entrance transitions.

Readme

@k-workspace/react-native-liquidglass-view

iOS 26 Liquid Glass effect for React Native. Wraps Apple's native UIGlassEffect with configurable styles, shadows, press animations, entrance transitions, and glass container merging.

iOS 26+ only. On older iOS versions and Android, a translucent fallback view is rendered automatically.

Installation

npm install @k-workspace/react-native-liquidglass-view

Then install the native iOS dependency:

cd ios && pod install

Requirements

| Requirement | Version | | -------------- | ----------------------- | | React Native | >= 0.73 | | iOS Deployment | >= 15.1 | | Xcode | 26+ (for UIGlassEffect) | | Swift | 5.0+ |

Usage

GlassCard

An opinionated card component with sensible defaults — the easiest way to add glass surfaces.

import { GlassCard } from "@k-workspace/react-native-liquidglass-view";

<GlassCard cornerRadius={20} effect="clear">
  <Text>Hello, Glass</Text>
</GlassCard>;

GlassView

A lower-level component exposing every native prop for full control.

import { GlassView } from "@k-workspace/react-native-liquidglass-view";

<GlassView
  style={{ width: 300, height: 200 }}
  effect="regular"
  cornerRadius={24}
  tintColor="rgba(100, 120, 255, 0.15)"
  colorScheme="dark"
  interactive={true}
  shadowIntensity={0.2}
  enablePressAnimation
  enableEntrance
>
  <Text>Full control</Text>
</GlassView>;

GlassContainer

Groups child glass views so their edges merge together (uses UIGlassContainerEffect).

import {
  GlassContainer,
  GlassView,
} from "@k-workspace/react-native-liquidglass-view";

<GlassContainer spacing={4}>
  <GlassView style={{ flex: 1 }}>
    <Text>Left</Text>
  </GlassView>
  <GlassView style={{ flex: 1 }}>
    <Text>Right</Text>
  </GlassView>
</GlassContainer>;

Props

LiquidGlassProps (GlassCard & GlassView)

| Prop | Type | Default | Description | | ---------------------- | ---------------------- | ----------- | -------------------------------------------------- | | effect | 'regular' \| 'clear' | 'clear' | Visual weight of the glass material. | | cornerRadius | number | 16 | Corner radius with continuous (Apple-style) curve. | | tintColor | string | undefined | Semi-transparent color blended over the glass. | | colorScheme | 'light' \| 'dark' | System | Override the system color scheme for this view. | | interactive | boolean | true | Whether the glass responds to touch. | | shadowIntensity | number | 0.15 | Elevation shadow opacity (0 – 1). | | enablePressAnimation | boolean | false | Spring scale animation + haptic on press. | | enableEntrance | boolean | false | Fade + translate-up entrance animation. |

LiquidGlassContainerProps (GlassContainer)

| Prop | Type | Default | Description | | --------- | -------- | ------- | ------------------------------------------------------ | | spacing | number | 0 | Distance at which child glass elements begin to merge. |

Platform Support Check

import { isLiquidGlassSupported } from "@k-workspace/react-native-liquidglass-view";

if (isLiquidGlassSupported) {
  // iOS 26+ — real glass
} else {
  // Fallback rendered automatically
}

Platform Support

| Platform | Status | | -------- | ----------------------------------- | | iOS 26+ | Full native UIGlassEffect support | | iOS < 26 | Translucent fallback view | | Android | In progress |

Android native support is currently being developed. In the meantime, a translucent <View> fallback is rendered automatically so your layout remains intact on all platforms.

How It Works

  • On iOS 26+, the native view creates a UIVisualEffectView backed by UIGlassEffect (or UIGlassContainerEffect for the container). It adds:

    • A subtle white edge border for glass definition
    • A specular top-highlight gradient simulating overhead light
    • Dual-layer shadows (contact + elevation) for depth
    • Optional spring press animation with haptic feedback
    • Optional fade-in entrance animation
  • On older iOS and Android, a styled <View> with translucent background, border, and shadow is rendered as a fallback.

License

MIT