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, styles.avi,
profile.associated?.labeler && styles.aviLabeler, profile.associated?.labeler && styles.aviLabeler,
]}> ]}>
<Animated.View ref={aviRef}> <Animated.View ref={aviRef} collapsable={false}>
<UserAvatar <UserAvatar
type={profile.associated?.labeler ? 'labeler' : 'user'} type={profile.associated?.labeler ? 'labeler' : 'user'}
size={90} size={90}
@@ -154,7 +154,7 @@ export function ProfileSubpageHeader({
paddingBottom: 6, paddingBottom: 6,
paddingHorizontal: isMobile ? 12 : 14, paddingHorizontal: isMobile ? 12 : 14,
}}> }}>
<Animated.View ref={aviRef}> <Animated.View ref={aviRef} collapsable={false}>
<Pressable <Pressable
testID="headerAviButton" testID="headerAviButton"
onPress={onPressAvi} onPress={onPressAvi}
+4 -1
View File
@@ -48,7 +48,10 @@ export function GalleryItem({
const hideBadges = const hideBadges =
viewContext === PostEmbedViewContext.FeedEmbedRecordWithMedia viewContext === PostEmbedViewContext.FeedEmbedRecordWithMedia
return ( return (
<Animated.View style={a.flex_1} ref={containerRefs[index]}> <Animated.View
style={a.flex_1}
ref={containerRefs[index]}
collapsable={false}>
<Pressable <Pressable
onPress={onPress ? () => onPress(index, containerRefs) : undefined} onPress={onPress ? () => onPress(index, containerRefs) : undefined}
onPressIn={onPressIn ? () => onPressIn(index) : undefined} onPressIn={onPressIn ? () => onPressIn(index) : undefined}
+4 -1
View File
@@ -180,7 +180,10 @@ export function PostEmbeds({
const image = images[0] const image = images[0]
return ( return (
<ContentHider modui={moderation?.ui('contentMedia')}> <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 <AutoSizedImage
crop={ crop={
viewContext === PostEmbedViewContext.ThreadHighlighted viewContext === PostEmbedViewContext.ThreadHighlighted