fix(mobile): keep Android chat text from showing through the composer (#5582)
This commit is contained in:
1 parent
33a03c8a7b
commit
bd422fd8d1
4 files changed
+33
-6
No files matched your search
@@ -21,6 +21,7 @@ import {
|
||||
Image,
|
||||
Platform,
|
||||
Pressable,
|
||||
StyleSheet,
|
||||
useColorScheme,
|
||||
View,
|
||||
type ViewStyle,
|
||||
@@ -698,11 +699,22 @@ export const ThreadComposer = memo(function ThreadComposer(props: ThreadComposer
|
||||
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%)",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
<Animated.View
|
||||
className="relative w-full self-center"
|
||||
layout={COMPOSER_LAYOUT_TRANSITION}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/settings.gradle.kts b/settings.gradle.kts
|
||||
index b3c46a3bf5eb21c0bb1c9435b5582aecbc57d57a..14f1e9c2063ef10ca3f2ecbb2336b8a4aacfcc9c 100644
|
||||
--- a/settings.gradle.kts
|
||||
+++ b/settings.gradle.kts
|
||||
@@ -13,7 +13,7 @@ pluginManagement {
|
||||
}
|
||||
}
|
||||
|
||||
-plugins { id("org.gradle.toolchains.foojay-resolver-convention").version("0.5.0") }
|
||||
+plugins { id("org.gradle.toolchains.foojay-resolver-convention").version("1.0.0") }
|
||||
|
||||
include(
|
||||
":react-native-gradle-plugin",
|
||||
Generated
+4
-3
@@ -75,6 +75,7 @@ patchedDependencies:
|
||||
'@legendapp/[email protected]': d162d67b73933ab077d00627cdf52b18ea88b28c4fae4e8340a854df25026f09
|
||||
'@pierre/[email protected]': 7ef7cb0cbabb17c15cdb137554068b36f15f6f5265e73fb51452aa3380db91aa
|
||||
'@react-native-menu/[email protected]': 5ea3ae4bf1d9baf5443b65c269bb09621c27a68d556f713778f37b1e8d46aaae
|
||||
'@react-native/[email protected]': c1b594a16e682d621b6a960926f8ce13fc92edfb397884cfe7fcb0518996a784
|
||||
'@react-navigation/[email protected]': c7fc101b78d434904425e5a24c22fb0042298dec6f807250486e784f3c717273
|
||||
[email protected]: af36b7948b6f9c56623074662b51dade5699880c1a7c71245de73e13c3185fb6
|
||||
[email protected]: 9170f8074ae4e35a0a086e756c8f815794fd3abe51eac67ca3ba02804225ec1f
|
||||
@@ -14198,7 +14199,7 @@ snapshots:
|
||||
- supports-color
|
||||
- utf-8-validate
|
||||
|
||||
'@react-native/[email protected]': {}
|
||||
'@react-native/[email protected](patch_hash=c1b594a16e682d621b6a960926f8ce13fc92edfb397884cfe7fcb0518996a784)': {}
|
||||
|
||||
'@react-native/[email protected]': {}
|
||||
|
||||
@@ -20047,7 +20048,7 @@ snapshots:
|
||||
'@react-native/assets-registry': 0.85.3
|
||||
'@react-native/codegen': 0.85.3(@babel/[email protected])
|
||||
'@react-native/community-cli-plugin': 0.85.3(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))([email protected])([email protected])
|
||||
'@react-native/gradle-plugin': 0.85.3
|
||||
'@react-native/gradle-plugin': 0.85.3(patch_hash=c1b594a16e682d621b6a960926f8ce13fc92edfb397884cfe7fcb0518996a784)
|
||||
'@react-native/js-polyfills': 0.85.3
|
||||
'@react-native/normalize-colors': 0.85.3
|
||||
'@react-native/virtualized-lists': 0.85.3(@types/[email protected])([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])
|
||||
@@ -20092,7 +20093,7 @@ snapshots:
|
||||
'@react-native/assets-registry': 0.85.3
|
||||
'@react-native/codegen': 0.85.3(@babel/[email protected])
|
||||
'@react-native/community-cli-plugin': 0.85.3(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))([email protected])([email protected])
|
||||
'@react-native/gradle-plugin': 0.85.3
|
||||
'@react-native/gradle-plugin': 0.85.3(patch_hash=c1b594a16e682d621b6a960926f8ce13fc92edfb397884cfe7fcb0518996a784)
|
||||
'@react-native/js-polyfills': 0.85.3
|
||||
'@react-native/normalize-colors': 0.85.3
|
||||
'@react-native/virtualized-lists': 0.85.3(@types/[email protected])([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])
|
||||
|
||||
@@ -128,6 +128,7 @@ patchedDependencies:
|
||||
"@legendapp/[email protected]": patches/@[email protected]
|
||||
"@pierre/[email protected]": patches/@pierre%[email protected]
|
||||
"@react-native-menu/[email protected]": patches/@[email protected]
|
||||
"@react-native/[email protected]": patches/@[email protected]
|
||||
"@react-navigation/[email protected]": patches/@react-navigation%[email protected]
|
||||
[email protected]: patches/[email protected]
|
||||
[email protected]: patches/[email protected]
|
||||
|
||||
Reference in new issue
Block a user