Make initial frame precise for avi

This commit is contained in:
Dan Abramov
2024-11-03 03:48:52 +00:00
parent f0621eed3b
commit 16f00af6fc
+10 -9
View File
@@ -162,21 +162,22 @@ let ProfileHeaderShell = ({
accessibilityRole="image" accessibilityRole="image"
accessibilityLabel={_(msg`View ${profile.handle}'s avatar`)} accessibilityLabel={_(msg`View ${profile.handle}'s avatar`)}
accessibilityHint=""> accessibilityHint="">
<Animated.View <View
ref={aviRef}
style={[ style={[
t.atoms.bg, t.atoms.bg,
{borderColor: t.atoms.bg.backgroundColor}, {borderColor: t.atoms.bg.backgroundColor},
styles.avi, styles.avi,
profile.associated?.labeler && styles.aviLabeler, profile.associated?.labeler && styles.aviLabeler,
]}> ]}>
<UserAvatar <Animated.View ref={aviRef}>
type={profile.associated?.labeler ? 'labeler' : 'user'} <UserAvatar
size={90} type={profile.associated?.labeler ? 'labeler' : 'user'}
avatar={profile.avatar} size={90}
moderation={moderation.ui('avatar')} avatar={profile.avatar}
/> moderation={moderation.ui('avatar')}
</Animated.View> />
</Animated.View>
</View>
</TouchableWithoutFeedback> </TouchableWithoutFeedback>
</GrowableAvatar> </GrowableAvatar>
</View> </View>