I'd like the last element in this image to be removed, but so far I can only get it to be cut off.
The code is as follows:
<View style={{ flexDirection: "row", flexWrap: "nowrap", overflow: "hidden" }}>
{item.sortedTagObjects.map(({ tag, color }) => (
<Text
key={tag}
style={{
height: 24,
lineHeight: 24,
paddingHorizontal: 8,
paddingVertical: 2,
justifyContent: "center",
textAlign: "center",
backgroundColor: "purple",
}}
>
{tag}
</Text>
))}
</View>;
When I try to make the wrapper <Text numberOfLines={1}> it looks like this:

