sbaiahmed1/react-native-blur
Tentang
A modern React Native blur view component that provides native blur effects for both iOS and Android platforms. also adds progressive blur and liquidGlass
Pengembangan web dan aplikasiYang dapat Anda lakukan
- Six focused components for blur, vibrancy, progressive/gradient blur, liquid glass, and a blurred switch.
- True native effects: UIVisualEffectView / UIGlassEffect on iOS. On Android 12 and later, each blur view blurs the views drawn behind it on the GPU. On Android 11 and earlier it blurs on the CPU with QmBlurView. Liquid glass runs as a GPU shader.
- Web support out of the box (Expo Web / react-native-web) via CSS backdrop-filter, including a real progressive-blur ramp.
- Native liquid glass on iOS 26+ and Android 13+, with automatic fallback to an enhanced blur on older iOS, older Android, and Web. isLiquidGlassAvailable() returns whether native glass renders.
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- +2
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asli@sbaiahmed1/react-native-blur
Native blur, vibrancy, and iOS 26 liquid-glass effects for React Native, on iOS, Android, and Web. Six focused components: BlurView, ProgressiveBlurView, VibrancyView, LiquidGlassView, LiquidGlassContainer, and BlurSwitch. Built for the New Architecture (Fabric).
📖 Documentation
Full documentation, guides, and the complete API reference live on the docs site:
👉 https://sbaiahmed1.github.io/react-native-blur/docs
- Installation & requirements
- BlurView · ProgressiveBlurView · VibrancyView
- LiquidGlassView · LiquidGlassContainer · BlurSwitch
- Props reference
- Migration & breaking changes
⚠️ New Architecture only (React Native 0.80+). The legacy architecture has not been supported since v5. See Migration & breaking changes.
Demo
iOS (left) and Android (right) blur effects in action
Features
- Six focused components for blur, vibrancy, progressive/gradient blur, liquid glass, and a blurred switch.
- True native effects:
UIVisualEffectView/UIGlassEffecton iOS. On Android 12 and later, each blur view blurs the views drawn behind it on the GPU. On Android 11 and earlier it blurs on the CPU with QmBlurView. Liquid glass runs as a GPU shader. - Web support out of the box (Expo Web / react-native-web) via CSS
backdrop-filter, including a real progressive-blur ramp. - Native liquid glass on iOS 26+ and Android 13+, with automatic fallback to an enhanced blur on older iOS, older Android, and Web.
isLiquidGlassAvailable()returns whether native glass renders. - New Architecture (Fabric) components with full TypeScript types.
Requirements
| Platform | Minimum version |
|---|---|
| iOS | 13.0+ (Xcode 16, and 26.0+ for liquid glass) |
| React Native | 0.80+ (New Architecture required) |
| Android | API 24+, AGP 8.9.1+ (API 33+ for liquid glass) |
| Web | react-native-web (blur needs backdrop-filter) |
Installation
yarn add @sbaiahmed1/react-native-blur
# then, for iOS:
cd ios && pod install
Requires React Native 0.80+ with the New Architecture enabled. Full setup notes: Installation docs.
Quick start
import { BlurView } from '@sbaiahmed1/react-native-blur';
<BlurView blurType="light" blurAmount={20} style={{ flex: 1 }}>
<Text>Content on top of blur</Text>
</BlurView>;
Every component, prop, and platform note is documented on the docs site.
Contributing
See CONTRIBUTING.md. The documentation site lives in website/. When you change the public API, update the website in the same pull request.
License
MIT
Credits
Built with create-react-native-library. On Android 11 and earlier, and for BlurSwitch, blur is powered by QmBlurView. Android liquid glass uses the AndroidLiquidGlassView shader (both by QmDeve, MIT).
Powered by
Tooling provided by JetBrains.
Jelajahi proyek terkait
Memuat…