Mark measured nodes as non-collapsable for Android

This commit is contained in:
Dan Abramov
2024-11-03 05:56:55 +00:00
parent d8eaf8b06c
commit 7c7ab50e25
4 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ let ProfileHeaderShell = ({
styles.avi,
profile.associated?.labeler && styles.aviLabeler,
]}>
<Animated.View ref={aviRef}>
<Animated.View ref={aviRef} collapsable={false}>
<UserAvatar
type={profile.associated?.labeler ? 'labeler' : 'user'}
size={90}
@@ -154,7 +154,7 @@ export function ProfileSubpageHeader({
paddingBottom: 6,
paddingHorizontal: isMobile ? 12 : 14,
}}>
<Animated.View ref={aviRef}>
<Animated.View ref={aviRef} collapsable={false}>
<Pressable
testID="headerAviButton"
onPress={onPressAvi}
+4 -1
View File
@@ -48,7 +48,10 @@ export function GalleryItem({
const hideBadges =
viewContext === PostEmbedViewContext.FeedEmbedRecordWithMedia
return (
<Animated.View style={a.flex_1} ref={containerRefs[index]}>
<Animated.View
style={a.flex_1}
ref={containerRefs[index]}
collapsable={false}>
<Pressable
onPress={onPress ? () => onPress(index, containerRefs) : undefined}
onPressIn={onPressIn ? () => onPressIn(index) : undefined}
+4 -1
View File
@@ -180,7 +180,10 @@ export function PostEmbeds({
const image = images[0]
return (
<ContentHider modui={moderation?.ui('contentMedia')}>
<Animated.View ref={containerRef} style={[a.mt_sm, style]}>
<Animated.View
ref={containerRef}
style={[a.mt_sm, style]}
collapsable={false}>
<AutoSizedImage
crop={
viewContext === PostEmbedViewContext.ThreadHighlighted