feat: use svg in brandpill (might need some adjusting, but looks fine)

This commit is contained in:
Adrian Castro
2024-04-02 00:21:53 +02:00
parent 32ce520fc0
commit e45a668c38
3 changed files with 24 additions and 8 deletions

View File

@@ -1,8 +1,9 @@
import { Image, Text, View } from "tamagui";
import { Text, useTheme, View } from "tamagui";
import Icon from "../../assets/images/icon-transparent.png";
import { MovieWebSvg } from "./Icon";
export function BrandPill() {
const theme = useTheme();
return (
<View
flexDirection="row"
@@ -19,8 +20,12 @@ export function BrandPill() {
scale: 1.05,
}}
>
<Image source={Icon} height={20} width={20} />
<Text fontSize="$4" fontWeight="$bold" paddingRight={5}>
<MovieWebSvg
fillColor={theme.tabBarIconFocused.val}
width={12}
height={12}
/>
<Text fontSize="$4" fontWeight="$bold" paddingRight={5} paddingLeft={3}>
movie-web
</Text>
</View>