Skip to content

Commit eb05bad

Browse files
committed
2 parents 891ee83 + 251757c commit eb05bad

Some content is hidden

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

43 files changed

+4384
-1062
lines changed

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const eslintConfig = [
1818
"out/**",
1919
"build/**",
2020
"next-env.d.ts",
21+
"mobile/**",
2122
"typechain-types/**",
2223
"skills/**",
2324
"cre/**",

mobile/.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# e-Story Mobile Environment Variables
2+
# Copy to .env and fill in values
3+
4+
API_BASE_URL=https://istory.vercel.app
5+
SUPABASE_URL=
6+
SUPABASE_ANON_KEY=
7+
WALLETCONNECT_PROJECT_ID=
8+
GOOGLE_WEB_CLIENT_ID=
9+
EAS_PROJECT_ID=

mobile/app.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
1717
ios: {
1818
supportsTablet: true,
1919
bundleIdentifier: "com.estory.mobile",
20+
associatedDomains: ["applinks:e-story-dapp.vercel.app"],
2021
infoPlist: {
2122
NSMicrophoneUsageDescription:
2223
"e-Story needs microphone access to record voice journals.",
@@ -62,14 +63,13 @@ export default ({ config }: ConfigContext): ExpoConfig => ({
6263
],
6364
],
6465
extra: {
65-
API_BASE_URL: process.env.API_BASE_URL || "https://istory.vercel.app",
66+
API_BASE_URL: process.env.API_BASE_URL || "https://e-story-dapp.vercel.app",
6667
SUPABASE_URL: process.env.SUPABASE_URL || "",
6768
SUPABASE_ANON_KEY: process.env.SUPABASE_ANON_KEY || "",
6869
WALLETCONNECT_PROJECT_ID: process.env.WALLETCONNECT_PROJECT_ID || "",
69-
GOOGLE_CLIENT_ID_IOS: process.env.GOOGLE_CLIENT_ID_IOS || "",
70-
GOOGLE_CLIENT_ID_ANDROID: process.env.GOOGLE_CLIENT_ID_ANDROID || "",
70+
GOOGLE_WEB_CLIENT_ID: process.env.GOOGLE_WEB_CLIENT_ID || "",
7171
eas: {
72-
projectId: process.env.EAS_PROJECT_ID || "",
72+
projectId: "183d424a-6826-4538-bff5-06aec39eb0d5",
7373
},
7474
},
7575
});

mobile/app/(tabs)/_layout.tsx

Lines changed: 15 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,21 @@
1-
// Tab Layout - Bottom navigation with 5 tabs
1+
// Tab Layout - Bottom navigation with custom glass tab bar
22
import React from "react";
33
import { Tabs } from "expo-router";
4-
import { View, Text } from "react-native";
54
import {
65
Home,
76
Mic,
7+
CalendarCheck,
88
Archive,
99
Users,
1010
User,
1111
} from "lucide-react-native";
12-
import { useAuthStore } from "../../stores/authStore";
12+
import { AnimatedTabBar } from "../../components/ui";
1313

1414
export default function TabLayout() {
15-
const isAuthenticated = useAuthStore((s) => s.isAuthenticated);
16-
1715
return (
1816
<Tabs
19-
screenOptions={{
20-
headerShown: false,
21-
tabBarStyle: {
22-
backgroundColor: "#0f172a",
23-
borderTopColor: "#1e293b",
24-
borderTopWidth: 1,
25-
height: 80,
26-
paddingBottom: 20,
27-
paddingTop: 8,
28-
},
29-
tabBarActiveTintColor: "#a78bfa",
30-
tabBarInactiveTintColor: "#64748b",
31-
tabBarLabelStyle: {
32-
fontSize: 11,
33-
fontWeight: "600",
34-
},
35-
}}
17+
screenOptions={{ headerShown: false }}
18+
tabBar={(props) => <AnimatedTabBar {...props} />}
3619
>
3720
<Tabs.Screen
3821
name="index"
@@ -48,16 +31,16 @@ export default function TabLayout() {
4831
options={{
4932
title: "Record",
5033
tabBarIcon: ({ color, size }) => (
51-
<View
52-
className="rounded-full bg-primary p-2"
53-
style={
54-
isAuthenticated
55-
? { backgroundColor: "#7c3aed" }
56-
: { backgroundColor: "#374151" }
57-
}
58-
>
59-
<Mic size={size - 4} color="#fff" />
60-
</View>
34+
<Mic size={size} color={color} />
35+
),
36+
}}
37+
/>
38+
<Tabs.Screen
39+
name="tracker"
40+
options={{
41+
title: "Tracker",
42+
tabBarIcon: ({ color, size }) => (
43+
<CalendarCheck size={size} color={color} />
6144
),
6245
}}
6346
/>

0 commit comments

Comments
 (0)