Skip to content
项目

关于

A modern React Native blur view component that provides native blur effects for both iOS and Android platforms. also adds progressive blur and liquidGlass

网站与应用开发

这些数字如何统计

可以做什么

  • 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.

实测星标增长

24小时
0
7天
0
15天
+2
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

@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).

npm version downloads per month license stars

New Architecture Liquid Glass

📖 Documentation

Full documentation, guides, and the complete API reference live on the docs site:

👉 https://sbaiahmed1.github.io/react-native-blur/docs

⚠️ New Architecture only (React Native 0.80+). The legacy architecture has not been supported since v5. See Migration & breaking changes.

Demo

iOS Demo Android 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 / 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.
  • 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

JetBrains logo.

Tooling provided by JetBrains.

探索相关项目

加载中…