Apple introduced Liquid Glass in iOS 26 and kept it there, and Android doesn't have an equivalent out of the box. I wanted to use the material in React Native apps across both platforms, so I built a package that renders real glass wherever the OS and GPU allow and falls back on older devices.
One view, three renderers
| Platform | What draws the glass |
|---|---|
| iOS 26 and up | Apple's UIGlassEffect |
| iOS 16.4 to 25 | Custom Metal renderer |
| Android 13 and up | AGSL shader ported from Metal |
| Android 10 to 12 | Blur or scrim, without refraction |
The Metal renderer and the Android AGSL shader run the exact same maths for refraction, chromatic dispersion, frost, tint, grain and the lit border. Whenever I tweak something against real iOS 26 glass, the change carries over to both platforms.
Working around Android's backdrop limit
Android doesn't give a view any way to sample the pixels behind it, so you have to tell the library what counts as the backdrop. You wrap that content in a LiquidGlassProvider, which records it into a display list that each glass view reads from.
<View style={{ flex: 1 }}>
<LiquidGlassProvider style={StyleSheet.absoluteFill}>
<ScrollView>{/* what shows through the glass */}</ScrollView>
</LiquidGlassProvider>
<LiquidGlassView style={styles.panel} cornerRadius={32} />
</View>Because glass views sit beside the provider instead of inside it, an Android glass view won't accidentally refract itself. On iOS, the Metal renderer handles that by filtering its own views out of the capture pass.
Controls included
On top of the base view, the package ships a tab bar, buttons that merge into their neighbours when pressed, a switch, slider, stepper, text input, segmented control, toolbar, toast and bottom sheet. The designs and spring physics come from Kyant0's AndroidLiquidGlass catalogue. Gestures run as Reanimated worklets on the UI thread so a busy JS thread won't stutter them.
Performance
Fill rate is the main bottleneck. Here's one animating glass view on a Galaxy S23 Ultra at 120 Hz:
| Screen covered | Janky frames |
|---|---|
| 10% | 2% |
| 25% | 2% |
| 50% | 18% |
| 75% | 78% |
Pinned bars and press feedback work smoothly even on a 2019 Redmi Note 7, which covers most real app UI anyway. A full-screen glass panel, though, isn't going to hold 120 Hz regardless of quality settings.
Status
It's MIT licensed and not on npm yet, so install it straight from GitHub. It started out as a fork of rit3zh's expo-liquid-glass-view, though it has diverged enough that I don't track upstream anymore.