Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): keep Android chat text from showing through the composer #5582

MergedPollyGlot(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/5582/headmerged by juliusmarminge View on GitHub

Showing 4 changed files with 29 additions and 3 deletions.

x
0 of 4 viewed, 4 left
15 additions and 3 deletionsapps/mobile/src/features/threads/ThreadComposer.tsxModified
View file
@@ -21,6 +21,7 @@
Image,
Platform,
Pressable,
+ StyleSheet,
useColorScheme,
View,
type ViewStyle,
@@ -698,11 +699,22 @@
style={{
paddingTop: isExpanded ? 8 : 6,
paddingBottom: (props.bottomInset ?? 0) + (isExpanded ? 8 : 6),
- experimental_backgroundImage: isDarkMode
- ? "linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 55%, rgba(0,0,0,0.9) 100%)"
- : "linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 55%, rgba(255,255,255,0.9) 100%)",
+ {/* The backdrop gradient lives on a plain View: Reanimated's Animated.View
+ silently drops experimental_backgroundImage on Android, which left this
+ strip fully transparent and the feed text legible through the composer. */}
+ <View
+ pointerEvents="none"
+ style={[
+ StyleSheet.absoluteFill,
+ {
+ experimental_backgroundImage: isDarkMode
+ ? "linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 55%, rgba(0,0,0,0.9) 100%)"
+ : "linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 55%, rgba(255,255,255,0.9) 100%)",
+ },