Add scroll-to-top on back
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
import React from 'react';
|
||||
import { getContrastColor } from '../utilities';
|
||||
import { Chip } from 'react-native-paper';
|
||||
import { Tag } from '../database';
|
||||
import FontAwesome5 from 'react-native-vector-icons/FontAwesome5';
|
||||
|
||||
const TagChip = ({ tag }: { tag: Tag }) => {
|
||||
const contrastColor = getContrastColor(tag.color);
|
||||
|
||||
return (
|
||||
<Chip
|
||||
icon={() => {
|
||||
return <FontAwesome5 name="tag" color={contrastColor} />;
|
||||
}}
|
||||
compact
|
||||
style={[
|
||||
{
|
||||
backgroundColor: tag.color,
|
||||
},
|
||||
]}
|
||||
textStyle={{ color: contrastColor }}>
|
||||
{'#' + tag.name}
|
||||
</Chip>
|
||||
);
|
||||
};
|
||||
|
||||
export default TagChip;
|
Reference in New Issue
Block a user