我正在嘗試在卡的右側添加3個小點以顯示有關點擊的更多信息,但找不到如何調用。react-native在卡的右側添加'...'以顯示更多信息
在Android上它被稱爲「」溢出菜單」,但使用overflow
我發現的唯一部件是‘toolbarAndroid’。因爲我在Android &工作IOS。
你知道如何做到這一點,我不能用它? 其實我使用「反應本土元素」爲證,但他們不提供這個選項。 也許我要創建爲
我的實際代碼的組成部分,不使用「標題」道具的因爲我不想顯示分隔線。
renderProject(project) {
const { id, name, description, species, images } = project;
return (
<Card containerStyle={thisstyles.cardContainerStyle} key={id}>
<View>
<Text style={thisstyles.projectName}>{name}</Text>
</View>
<View style={{marginLeft:15}}>
<Text style={{color:'mediumvioletred'}}>{description}</Text>
<Text>
{species} Espèces {images} Images
</Text>
</View>
</Card>
);
}
我認爲你可以適當的設計 –
到組件添加透明圖像? react-native-element卡在標題上沒有圖標 – AlainIb
您還沒有添加代碼,所以不確定,但在您的卡片標題/第一行被渲染的行上 –