[Android] Child `Text` disappears after changing styles of parent `View`
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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