Features
- Three looks: fogged glass, hammered privacy glass and frost
- Drops slide down the glass and leave clear trails that fog over again
- Frost grows fern crystals and flakes over a glittering crust
- Wipe the fog or scrape the frost with a finger; it comes back on its own
- Works over any view: images, text, whole screens
- Taps and scrolls still reach what is behind the glass
- Native on iOS and Android, and holds still with Reduce Motion
Installation
1Install dependencies
2Run a development build (Expo Go can't load native modules)
Usage
blurTarget is the view behind the glass. It must not contain the glass itself.
How it works
A small TypeScript component passes plain numbers to a native view. On Android the glass is a GPU shader set as a RenderEffect on the view behind it, so it draws live. On iOS, fog is the system blur cut by a mask redrawn each frame, while hammered glass and frost draw with Metal from a snapshot. Drops follow the same formula on every renderer, and a finger's wipe is kept in a small grid that fades back over time.
More once you own it
Examples, the full list of props and every advanced option for Glass Shaders are here for owners.