react / react/react-native

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

Open
#54,217 5 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue: Author Provided Repro Needs: Author Feedback Platform: Android
Dominant language
C++
Stars
127k
Forks
25.3k
Avg merge
1d 23h
Merged PRs (30d)
4

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the mandatory reproducer at github.com/plneple/reproducer-react-native-fork/tree/text-inside-view and run it on Android. Tap the button twice to confirm that the child Text disappears after the parent View style changes; done means the Text remains visible across that sequence.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.