Skip to content

Commit 4a15da4

Browse files
committedAug 6, 2024
adding rn-primitives for ui and calendar component
1 parent cc766a9 commit 4a15da4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+875
-1952
lines changed
 

‎apps/expo/package.json

+12
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,24 @@
2626
"@gorhom/bottom-sheet": "^4.6.4",
2727
"@hookform/resolvers": "^3.9.0",
2828
"@hyper/validators": "workspace:*",
29+
"@marceloterreiro/flash-calendar": "^1.0.0",
2930
"@radix-ui/react-label": "^2.1.0",
3031
"@radix-ui/react-progress": "^1.1.0",
3132
"@radix-ui/react-tooltip": "^1.1.2",
3233
"@react-native-async-storage/async-storage": "1.23.1",
3334
"@react-native-google-signin/google-signin": "^12.2.1",
3435
"@react-navigation/drawer": "^6.7.2",
3536
"@react-navigation/native": "^6.1.18",
37+
"@rn-primitives/avatar": "^1.0.3",
38+
"@rn-primitives/dialog": "^1.0.3",
39+
"@rn-primitives/hooks": "^1.0.3",
40+
"@rn-primitives/label": "^1.0.3",
41+
"@rn-primitives/portal": "^1.0.3",
42+
"@rn-primitives/progress": "^1.0.3",
43+
"@rn-primitives/slot": "^1.0.3",
44+
"@rn-primitives/tooltip": "^1.0.3",
45+
"@rn-primitives/types": "^1.0.3",
46+
"@rn-primitives/utils": "^1.0.3",
3647
"@shopify/flash-list": "1.7.0",
3748
"@shopify/react-native-skia": "^1.3.9",
3849
"@supabase/auth-helpers-react": "catalog:supabase",
@@ -44,6 +55,7 @@
4455
"aes-js": "^3.1.2",
4556
"class-variance-authority": "^0.7.0",
4657
"clsx": "^2.1.1",
58+
"date-fns": "^3.6.0",
4759
"expo": "^51.0.24",
4860
"expo-apple-authentication": "~6.4.2",
4961
"expo-av": "~14.0.6",
+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import { TouchableOpacity, View } from "react-native";
2+
import { Tabs } from "expo-router";
3+
import colors from "tailwindcss/colors";
4+
5+
import { CircleUserRound } from "~/lib/icons/circle-user-round";
6+
import { House } from "~/lib/icons/house";
7+
import { Plus } from "~/lib/icons/plus";
8+
9+
const TabsLayout = () => {
10+
return (
11+
<Tabs>
12+
<Tabs.Screen
13+
name="index"
14+
options={{
15+
headerShown: false,
16+
title: "Home",
17+
tabBarButton: (props) => <TouchableOpacity {...props} />,
18+
tabBarIcon: ({ size, color }) => <House size={size} color={color} />,
19+
}}
20+
/>
21+
<Tabs.Screen
22+
name="log"
23+
options={{
24+
title: "Log",
25+
tabBarLabel: "",
26+
tabBarButton: (props) => <TouchableOpacity {...props} />,
27+
tabBarIcon: ({ size }) => (
28+
<View
29+
style={{
30+
width: size + 10,
31+
height: size + 10,
32+
borderRadius: 9999,
33+
backgroundColor: colors.blue[600],
34+
justifyContent: "center",
35+
alignItems: "center",
36+
top: 10,
37+
}}
38+
>
39+
<Plus size={size} color="white" />
40+
</View>
41+
),
42+
}}
43+
/>
44+
<Tabs.Screen
45+
name="account"
46+
options={{
47+
title: "Account",
48+
tabBarButton: (props) => <TouchableOpacity {...props} />,
49+
tabBarIcon: ({ size, color }) => (
50+
<CircleUserRound size={size} color={color} />
51+
),
52+
}}
53+
/>
54+
</Tabs>
55+
);
56+
};
57+
58+
export default TabsLayout;

0 commit comments

Comments
 (0)
Failed to load comments.