我正在为ListItem使用带有徽章和V形符号的正确标题。但是,正确的标题并不位于最右上方。这是我的代码。
<ListItem
onPress={() => {
this.props.navigation.navigate ('Messages', {
message: item,
});
}}
scaleProps={{
friction: 90,
tension: 100,
activeScale: 0.95,
}}
linearGradientProps={{
colors: ['#eee', '#81c784'],
start: {x: 1, y: 0},
end: {x: 0.2, y: 0},
}}
ViewComponent={LinearGradient}
leftAvatar={{
rounded: true,
source: {uri: item.avatar_url},
}}
rightTitle="date"
rightTitleStyle={{position: 'fixed', right: 0}}
title={item.name}
titleStyle={{color: '#000', fontWeight: 'bold'}}
subtitleStyle={{color: '#000'}}
subtitle={item.subtitle}
chevronColor="gray"
badge={{
value: 3,
textStyle: {color: '#fff'},
containerStyle: {backgroundColor: '#81c784'},
}}
chevron
/>
如何在最右上角显示列表项的日期?