百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

react-native-blur

> 前端框架
开源

React Native 模糊组件

3.9K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

React Native 模糊组件

@React-native-community/blur

一个用于在 iOS 上实现 UIVisualEffectView 的模糊和活力效果,并在 Android 上使用 BlurView 的组件。

当前维护者:

  • Thibault Malbranche(Twitter @titozzz),来自 Brigad

内容

  • 安装
  • 使用方法
  • VibrancyView
  • 示例 React Native 应用
  • 有疑问?

安装

bash
yarn add @react-native-community/blur

安装原生依赖(仅限 iOS):

bash
cd ios && pod install

使用方法

BlurView

属性 可能的值 默认值 平台
blurType 见下方 blurType - 所有
blurAmount 0 - 100(Android 上最大 blurAmount 为 32,因此更高的值会被限制为 32) 10 所有
reducedTransparencyFallbackColor 任意颜色 - 仅 iOS
blurRadius 0 - 25 与 iOS blurAmount 匹配 仅 Android
downsampleFactor 0 - 25 与 iOS blurAmount 匹配 仅 Android
overlayColor 任意颜色 基于 iOS blurType 的默认颜色 仅 Android

blurType

名称 描述
xlight 超轻模糊类型
light 轻模糊类型
dark 深模糊类型
extraDark 超深模糊类型(仅限 tvOS)
regular 常规模糊类型(仅限 iOS 10+ 和 tvOS)
prominent 显著模糊类型(仅限 iOS 10+ 和 tvOS)

blurType(仅限 iOS 13)

名称 描述
chromeMaterial 一种可调节的模糊效果,营造出系统铬合金的外观。
material 一种可调节的模糊效果,营造出具有正常厚度的材质外观。
thickMaterial 一种可调节的模糊效果,营造出比正常更厚的材质外观。
chromeMaterial 一种可调节的模糊效果,营造出系统铬合金的外观。
thinMaterial 一种可调节的模糊效果,营造出超薄材质的外观。
ultraThinMaterial 一种可调节的模糊效果,营造出极薄材质的外观。

Issues· 250 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptreact-nativereact-native-blurreact-native-component

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类前端框架
定价开源

> 相关工具

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架