frontend: yeet ios stuff

Pedro Lucas Porcellis porcellis@eletrotupi.com 1 month ago 474ef7db81e944acfac91af1adbbb029cb9cd6d9
Parents: b4d6814
2 file(s) changed
  • frontend/components/misc/haptic-tab.tsx +0 -4
  • frontend/components/ui/icon-symbol.ios.tsx +0 -32
frontend/components/misc/haptic-tab.tsx
@@ -7,10 +7,6 @@ return (
7 7 <PlatformPressable
8 8 {...props}
9 9 onPressIn={(ev) => {
10 - if (process.env.EXPO_OS === 'ios') {
11 - // Add a soft haptic feedback when pressing down on the tabs.
12 - Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light);
13 - }
14 10 props.onPressIn?.(ev);
15 11 }}
16 12 />
@@ -1,32 +0,0 @@
1 - import { SymbolView, SymbolViewProps, SymbolWeight } from 'expo-symbols';
2 - import { StyleProp, ViewStyle } from 'react-native';
3 -
4 - export function IconSymbol({
5 - name,
6 - size = 24,
7 - color,
8 - style,
9 - weight = 'regular',
10 - }: {
11 - name: SymbolViewProps['name'];
12 - size?: number;
13 - color: string;
14 - style?: StyleProp<ViewStyle>;
15 - weight?: SymbolWeight;
16 - }) {
17 - return (
18 - <SymbolView
19 - weight={weight}
20 - tintColor={color}
21 - resizeMode="scaleAspectFit"
22 - name={name}
23 - style={[
24 - {
25 - width: size,
26 - height: size,
27 - },
28 - style,
29 - ]}
30 - />
31 - );
32 - }