Add scroll-to-top on back

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2023-07-19 15:30:10 +03:00
parent 85732e247a
commit 1b2ce96c5e
6 changed files with 110 additions and 63 deletions

View File

@@ -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;