chore: cleanup n stuffs

This commit is contained in:
Adrian Castro
2024-04-02 21:58:28 +02:00
parent 4eaf04761e
commit 9273a32f17
5 changed files with 593 additions and 59 deletions

View File

@@ -1,3 +1,4 @@
import * as Haptics from "expo-haptics";
import { Text, useTheme, View } from "tamagui";
import { MovieWebSvg } from "./Icon";
@@ -19,6 +20,7 @@ export function BrandPill() {
opacity: 1,
scale: 1.05,
}}
onLongPress={() => Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Heavy)}
>
<MovieWebSvg
fillColor={theme.tabBarIconFocused.val}
@@ -26,6 +28,7 @@ export function BrandPill() {
height={12}
/>
<Text fontSize="$4" fontWeight="$bold" paddingRight={5} paddingLeft={3}>
{/* padding might need adjusting */}
movie-web
</Text>
</View>

View File

@@ -1,5 +1,6 @@
import { Linking } from "react-native";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import * as Haptics from "expo-haptics";
import { FontAwesome6, MaterialIcons } from "@expo/vector-icons";
import { Circle, View } from "tamagui";
@@ -28,6 +29,9 @@ export function Header() {
onPress={async () => {
await Linking.openURL(DISCORD_LINK);
}}
onLongPress={() =>
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Heavy)
}
>
<MaterialIcons name="discord" size={20} color="white" />
</Circle>
@@ -41,6 +45,9 @@ export function Header() {
onPress={async () => {
await Linking.openURL(GITHUB_LINK);
}}
onLongPress={() =>
Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Heavy)
}
>
<FontAwesome6 name="github" size={20} color="white" />
</Circle>