expo-liquid-glass-view
v0.1.9
Published
π Native liquid glass π§ views for Expo. Powered by SwiftUI + expo-modules-core
Downloads
1,162
Maintainers
Readme
β¨ Features
- π§ Native glassEffect on iOS
- π Powered by SwiftUI for ultra-smooth performance
- π§± Configurable corner radius and style (continuous or circular)
- π Custom tint overlays and blur strength types
- π§© Supports nesting React Native children
π Installation
1. Add the package
npx expo install expo-liquid-glass-view2. Install CocoaPods
cd ios && pod install3. Prebuild the iOS project
npx expo prebuild --platform ios4. Run your app
npx expo run:iosβ οΈ iOS only β This view uses SwiftUI and does not support Android.
π¦ Usage
import { ExpoLiquidGlassView } from "expo-liquid-glass-view";
export default function App() {
return (
<ExpoLiquidGlassView
cornerStyle={CornerStyle.Circular}
type={LiquidGlassType.Tint}
tint="#000000"
cornerRadius={24}
style={{ width: 200, height: 200, alignSelf: "center", marginTop: 100 }}
>
<Text style={{ color: "#fff", textAlign: "center" }}>
Liquid Glass β¨
</Text>
</ExpoLiquidGlassView>
);
}βοΈ Props
| Prop | Type | Default | Description |
| -------------- | --------------------------------------------------------------- | -------------- | -------------------------------------------------------------------------- |
| type | "clear" \| "tint" \| "regular" \| "interactive" \| "identity" | "regular" | Defines the glass blur intensity and system effect |
| tint | string | undefined | Optional iOS system tint, like "systemUltraThinMaterial" or custom color |
| cornerRadius | number | 12 | Border radius in points |
| cornerStyle | "continuous" | "circular" | "continuous" | Defines the curvature style of the corners |
| style | StyleProp<ViewStyle> | undefined | React Native style object |
| children | React.ReactNode | undefined | Optional React children to render inside the glass |
π§ͺ Types
export enum CornerStyle {
Continuous = "continuous",
Circular = "circular",
}
export enum LiquidGlassType {
Clear = "clear",
Tint = "tint",
Regular = "regular",
Interactive = "interactive",
Identity = "identity",
}
export interface ExpoLiquidGlassViewProps {
type?: LiquidGlassType;
tint?: string;
cornerRadius?: number;
cornerStyle?: CornerStyle;
style?: StyleProp<ViewStyle>;
children?: React.ReactNode;
}π± Platform Support
- β iOS (SwiftUI)
- β Android (not supported)
π Built With
- βοΈ Expo Modules
- π SwiftUI
- π± React Native
π§© Related Ideas
If you're building glassmorphic UIs, try pairing this with:
expo-blurexpo-symbolsreact-native-skia
π₯ Preview
https://github.com/user-attachments/assets/a08878fb-6a90-474b-8f21-1b46fe990177
β€οΈ Contributing
PRs and issues are welcome! Letβs keep building beautiful native UIs with React Native + SwiftUI!
π License
MIT Β© rit3zh
