Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Android] Child `Text` disappears after changing styles of parent `View`

未关闭
#54,217 5 条评论 3 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

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

调研方向

从 github.com/plneple/reproducer-react-native-fork/tree/text-inside-view 中的必需 reproducer 开始,并在 Android 上运行它。点击按钮两次,以确认父 View 的 style 发生变化后子 Text 消失;当 Text 在整个操作序列中都保持可见时,即表示完成。

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

描述

Issue: Author Provided Repro Needs: Author Feedback Platform: Android
Description

Adding borderWidth and then removing it from a View which also has borderRadius and overflow: "hidden" causes child Text to not be displayed.

I have reproduced the issue on 0.80.2, 0.81.4 and 0.82.1, so this is likely not a regression.

Steps to reproduce

Tap the button in the reproducer twice

React Native Version

0.82.1

Affected Platforms

Runtime - Android

Output of npx @react-native-community/cli info
-
Stacktrace or Logs
-
MANDATORY Reproducer

https://github.com/plneple/reproducer-react-native-fork/tree/text-inside-view

Screenshots and Videos

https://github.com/user-attachments/assets/8188dbab-3af6-4351-bed4-266cc88553c6

主要语言
C++
星标
127k
派生
25.3k
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

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

react/react-native 的其他 Issue

查看 react/react-native 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

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