New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-lg

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-lg

A customizable Liquid Glass effect library for React Native (Android & iOS)

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

react-native-lg

A customizable Liquid Glass effect library for React Native, supporting both Android and iOS platforms.

Liquid Glass Effect

Features

  • 🎨 Customizable liquid glass/glassmorphism effects
  • 🔄 Refraction with depth and chromatic aberration
  • 💫 Blur and backdrop effects
  • 🎯 Inner shadows and highlights
  • 📱 Cross-platform support (Android & iOS)
  • ⚡ High performance with native rendering
  • 🎭 Multiple effect combinations

Installation

npm install react-native-lg

or

yarn add react-native-lg

iOS

cd ios && pod install

Note: You may see editor warnings in VS Code for iOS Swift files. These are false positives and can be safely ignored. The code compiles correctly when building the app.

Usage

Basic Liquid Glass View

import { LiquidGlassView } from 'react-native-lg';

export default function App() {
  return (
    <LiquidGlassView
      style={{ width: 200, height: 100, borderRadius: 20 }}
      refractionAmount={30}
      refractionHeight={10}
      blurRadius={20}
    >
      <Text>Liquid Glass Effect</Text>
    </LiquidGlassView>
  );
}

Advanced Configuration

<LiquidGlassView
  style={{ 
    width: 300, 
    height: 150, 
    borderRadius: 25 
  }}
  refractionAmount={40}
  refractionHeight={15}
  depthEffect={0.5}
  chromaticAberration={2}
  blurRadius={25}
  innerShadow={{
    offsetX: 0,
    offsetY: 2,
    blurRadius: 10,
    color: 'rgba(0, 0, 0, 0.3)',
  }}
  highlight={{
    color: 'rgba(255, 255, 255, 0.5)',
    blurRadius: 15,
  }}
>
  <Text style={{ fontSize: 20, color: 'white' }}>
    Beautiful Liquid Glass
  </Text>
</LiquidGlassView>

API Reference

LiquidGlassView Props

PropTypeDefaultDescription
styleViewStyle-Standard React Native style
refractionAmountnumber30Amount of refraction distortion
refractionHeightnumber10Height of refraction effect
depthEffectnumber0.0Depth perception (0.0 - 1.0)
chromaticAberrationnumber0Color dispersion amount
blurRadiusnumber20Blur intensity
innerShadowInnerShadow-Inner shadow configuration
highlightHighlight-Highlight configuration

InnerShadow

{
  offsetX: number;
  offsetY: number;
  blurRadius: number;
  color: string;
}

Highlight

{
  color: string;
  blurRadius: number;
}

Examples

Check out the example app for more advanced usage and component examples:

  • Liquid Button
  • Liquid Toggle
  • Liquid Slider
  • Liquid Bottom Tabs

Credits

This library is inspired by and ported from AndroidLiquidGlass by Kyant.

License

Apache-2.0

Made with ❤️ for React Native

Keywords

react-native

FAQs

Package last updated on 14 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts