
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-native-lg
Advanced tools
A customizable Liquid Glass effect library for React Native (Android & iOS)
A customizable Liquid Glass effect library for React Native, supporting both Android and iOS platforms.

npm install react-native-lg
or
yarn add react-native-lg
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.
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>
);
}
<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>
| Prop | Type | Default | Description |
|---|---|---|---|
style | ViewStyle | - | Standard React Native style |
refractionAmount | number | 30 | Amount of refraction distortion |
refractionHeight | number | 10 | Height of refraction effect |
depthEffect | number | 0.0 | Depth perception (0.0 - 1.0) |
chromaticAberration | number | 0 | Color dispersion amount |
blurRadius | number | 20 | Blur intensity |
innerShadow | InnerShadow | - | Inner shadow configuration |
highlight | Highlight | - | Highlight configuration |
{
offsetX: number;
offsetY: number;
blurRadius: number;
color: string;
}
{
color: string;
blurRadius: number;
}
Check out the example app for more advanced usage and component examples:
This library is inspired by and ported from AndroidLiquidGlass by Kyant.
Apache-2.0
Made with ❤️ for React Native
FAQs
A customizable Liquid Glass effect library for React Native (Android & iOS)
We found that react-native-lg demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.