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-react-native

v0.1.0

Published

React Native Liquid Glass Effect

Readme

liquid-glass-react-native

A React Native library that provides cross-platform glass effect components.

Features

  • iOS 26+: Uses native UIGlassEffect to provide true glass effects
  • iOS < 26 & Android: Uses React Native implementation to provide similar glass effects with semi-transparent backgrounds
  • Cross-platform compatibility: Automatically detects platform and version to choose the appropriate implementation
  • Configurable: Supports custom colors, appearance, and interactivity

Installation

yarn add liquid-glass-react-native

iOS

For iOS, you'll need to install the pods:

cd ios && pod install

Android

No additional setup required for Android.

Usage

Basic Usage

import { LiquidGlassView } from 'liquid-glass-react-native';

function MyComponent() {
  return (
    <LiquidGlassView style={styles.glassContainer}>
      <Text style={styles.text}>Hello Glass World!</Text>
    </LiquidGlassView>
  );
}

const styles = StyleSheet.create({
  glassContainer: {
    width: 200,
    height: 100,
    borderRadius: 20,
    alignItems: 'center',
    justifyContent: 'center',
  },
  text: {
    color: 'rgba(0,0,0,0.8)',
    fontSize: 16,
    fontWeight: '500',
  },
});

Advanced Usage with Custom Options

import { LiquidGlassView, type GlassEffectAppearance } from 'liquid-glass-react-native';

function AdvancedGlassComponent() {
  return (
    <LiquidGlassView
      tintColor="#094ECF"
      isInteractive={true}
      appearance="light"
      useNative={true}
      style={styles.glassButton}
    >
      <Text style={styles.buttonText}>Interactive Glass Button</Text>
    </LiquidGlassView>
  );
}

API Reference

LiquidGlassView Props

| Prop | Type | Default | Description | | --------------- | -------------------------------- | ----------- | --------------------------------------------------------------- | | tintColor | string | undefined | Custom tint color for the glass effect | | isInteractive | boolean | false | Enables interactive animations and hover effects (iOS 26+ only) | | appearance | 'light' \| 'dark' \| 'default' | 'default' | Controls the glass effect appearance | | useNative | boolean | true | Whether to use native implementation (recommended) | | onPress | () => void | undefined | Touch event callback function | | style | ViewStyle | - | Standard React Native style props |

GlassEffectAppearance

  • 'light': Light glass effect with subtle transparency
  • 'dark': Dark glass effect with more pronounced shadows
  • 'default': Automatic appearance based on system theme

Platform Compatibility

| Platform | Version | Implementation | Features | | -------- | ------------ | -------------------- | ------------------------------------------ | | iOS | 26+ | Native UIGlassEffect | Full functionality including interactivity | | iOS | < 26 | React Native | Basic glass effect | | Android | All versions | React Native | Basic glass effect |

Examples

Glass Card Component

function GlassCard({ title, content }) {
  return (
    <LiquidGlassView
      appearance="light"
      isInteractive={true}
      style={styles.card}
    >
      <Text style={styles.title}>{title}</Text>
      <Text style={styles.content}>{content}</Text>
    </LiquidGlassView>
  );
}

const styles = StyleSheet.create({
  card: {
    padding: 20,
    borderRadius: 16,
    margin: 16,
    shadowColor: '#000',
    shadowOffset: { width: 0, height: 2 },
    shadowOpacity: 0.1,
    shadowRadius: 8,
    elevation: 3,
  },
  title: {
    fontSize: 18,
    fontWeight: '600',
    marginBottom: 8,
    color: 'rgba(0,0,0,0.8)',
  },
  content: {
    fontSize: 14,
    color: 'rgba(0,0,0,0.6)',
    lineHeight: 20,
  },
});

Floating Action Button

function FloatingActionButton({ onPress, icon }) {
  return (
    <LiquidGlassView
      tintColor="#007AFF"
      isInteractive={true}
      appearance="default"
      style={styles.fab}
      onPress={onPress}
    >
      {icon}
    </LiquidGlassView>
  );
}

const styles = StyleSheet.create({
  fab: {
    width: 56,
    height: 56,
    borderRadius: 28,
    alignItems: 'center',
    justifyContent: 'center',
    position: 'absolute',
    bottom: 24,
    right: 24,
  },
});

Requirements

  • React Native >= 0.70.0
  • iOS >= 12.0
  • Android API level >= 21

Development

Running the Example

# Install dependencies
yarn install

# Run the example app
yarn example ios
# or
yarn example android

Building

# Build the library
yarn prepare

# Run tests
yarn test

# Type checking
yarn typecheck

Contributing

We welcome contributions! Please see our contributing guide for details on how to submit pull requests, report issues, and contribute to the development workflow.

License

MIT © dive.fan


Made with ❤️ using create-react-native-library