react / react/react-native

Image BlurRadius not working on gif on android and ios

未关闭
#39,792 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Component: Image Issue: Author Provided Repro Needs: Triage :mag: Newer Patch Available Platform: Android Platform: iOS
主要语言
C++
星标
127k
派生
25.3k
平均合并
1 天 23 小时
30 天内合并 PR
4

描述

Description

The blur don't work on a gif but work with a classic img

React Native Version

0.72.4

Output of npx react-native info

info Fetching system and libraries information...
System:
OS: Linux 6.4 Pop!_OS 22.04 LTS
CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-11370H @ 3.30GHz
Memory: 1.67 GB / 15.36 GB
Shell:
version: 5.8.1
path: /usr/bin/zsh
Binaries:
Node:
version: 16.20.2
path: ~/.nvm/versions/node/v16.20.2/bin/node
Yarn: Not Found
npm:
version: 8.19.4
path: ~/.nvm/versions/node/v16.20.2/bin/npm
Watchman: Not Found
SDKs:
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Languages:
Java:
version: 1.8.0_382
path: /usr/bin/javac
Ruby:
version: 3.0.2
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.4
wanted: 0.72.4
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found

info React Native v0.72.5 is now available (your project is running on v0.72.4).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.72.5
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.72.4
info For more info, check out "https://reactnative.dev/docs/upgrading?os=linux&platform=android".

Steps to reproduce

`import { Image } from "react-native";

export default TestComponent() {
return (<Image blurRadius={50}
resizeMode={"cover"}
style={{
width: "100%",
aspectRatio: 1,
objectFit: "contain",
}}
source={require('../../../assets/test.gif')}
/>)

}`

Snack, screenshot, or link to a repository

https://snack.expo.dev/@hforgame/blurradius-issue

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

使用 Image 组件、blurRadius={50} 和 test.gif 源,在 Android 和 iOS 上通过链接的 Snack 重现该问题。首先跟踪 Image 对 GIF 源的 blurRadius 处理;当 GIF 在两个平台上都能像普通图像一样一致地进行模糊处理时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
react-native
领域
mobile
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。