fix(mobile): keep Android chat text from showing through the composer #5582
main fromrefs/pull/5582/head·merged by juliusmarminge View on GitHubSummary#
On Android, thread feed text stays fully legible as it scrolls behind the composer, because the composer's backdrop gradient never renders there: Reanimated's Animated.View silently drops experimental_backgroundImage on Android, leaving the strip 100% transparent. iOS is unaffected (the gradient renders natively and the liquid-glass pill blurs whatever remains).
- Move the backdrop gradient from the animated container onto a plain
pointerEvents="none"childView(StyleSheet.absoluteFill), where React Native renders it on both platforms. Same visual design, no new dependency. - Ship
patches/@react-native__gradle-plugin@0.85.3.patchbumping the foojay resolver to 1.0.0: without itexpo run:androidfails on Gradle 9 (JvmVendorSpec.IBM_SEMERUwas removed), so Android builds are currently broken from a clean checkout.
The other experimental_backgroundImage usages (NewTaskDraftScreen, ComposerToolbarTrigger) already sit on plain Views and are unaffected.
Before / After#
Dark mode (left: before, feed text fully legible through the composer; right: after, faded like iOS):

Light mode:

Test plan#
- Reproduced on a Pixel emulator (API 35, dev client built from this branch): before the fix, list text renders fully opaque behind the composer pill and toolbar.
- After the fix, text scrolling behind the composer fades out in both light and dark mode, collapsed and expanded (keyboard open) states.
- At-rest layout unchanged: content still parks above the composer (bottom inset path untouched).
-
tsc --noEmit,vp lint,vp fmtclean.
🤖 Generated with Claude Code
Note
Low Risk Scoped mobile UI layering fix and a build-tooling patch; no auth, data, or server behavior changes.
Overview
Fixes Android thread UI where feed text stayed fully readable behind the composer because Reanimated’s Animated.View ignored experimental_backgroundImage.
The composer backdrop gradient is moved onto a non-interactive child View with StyleSheet.absoluteFill in ThreadComposer, keeping the same light/dark gradients while rendering on Android. Layout animation and padding on the outer Animated.View are unchanged.
Also adds a pnpm patch for @react-native/gradle-plugin@0.85.3 that bumps the foojay toolchain resolver plugin to 1.0.0, unblocking expo run:android on Gradle 9 where the older resolver references removed APIs.
Note
Fix Android chat text showing through the composer backdrop gradient#
On Android, Animated.View drops the experimental_backgroundImage gradient property, leaving the composer backdrop transparent and allowing chat text to show through.
- Moves the gradient from the outer
Animated.Viewto a separate plainViewwithStyleSheet.absoluteFillin ThreadComposer.tsx, which renders the gradient correctly on Android. - Also patches
@react-native/gradle-plugin@0.85.3to update thefoojay-resolver-conventionGradle plugin from0.5.0to1.0.0to fix an Android build issue.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
Approvability#
Verdict: Approved eaf87c5
This is a straightforward bug fix that moves an existing gradient style from an Animated.View (where it was silently dropped on Android) to a plain View. No behavior change beyond fixing the visual bug. The accompanying gradle patch is a minor toolchain version bump.
You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).juliusmarminge merged thisbd422fd
juliusmarminge closed this
Sign in to join this conversation.
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
042764c2-d864-45ca-b64c-5c95b32e8fb3You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share