Skip to content

Commit 3a6dd92

Browse files
committed
refactorings
1 parent 6670eec commit 3a6dd92

35 files changed

+1210
-1268
lines changed

.github/workflows/eas.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
jobs:
6+
update:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: 🏗 Setup repo
10+
uses: actions/checkout@v3
11+
12+
- name: 🏗 Setup Node
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: 18.x
16+
cache: pnpm
17+
- name: 🏗 Setup EAS
18+
uses: expo/expo-github-action@v8
19+
with:
20+
eas-version: latest
21+
token: ${{ secrets.EXPO_TOKEN }}
22+
23+
- name: 🚀 Create APK
24+
run: eas build -p android --profile preview

app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
[
2828
"expo-splash-screen",
2929
{
30+
"image": "./assets/images/splash-icon.png",
3031
"imageWidth": 200,
3132
"resizeMode": "contain",
3233
"backgroundColor": "#ffffff"
@@ -46,4 +47,4 @@
4647
}
4748
}
4849
}
49-
}
50+
}

app/(tabs)/_layout.tsx

Lines changed: 0 additions & 56 deletions
This file was deleted.

app/(tabs)/rank.tsx

Lines changed: 0 additions & 16 deletions
This file was deleted.

app/(tabs)/register.tsx

Lines changed: 0 additions & 13 deletions
This file was deleted.

app/_layout.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { Footer } from "@/components/footer";
2+
import { Header } from "@/components/header";
13
import { Poppins_400Regular } from "@expo-google-fonts/poppins";
24
import { Rubik_400Regular, Rubik_700Bold } from "@expo-google-fonts/rubik";
35
import { useFonts } from "expo-font";
@@ -28,10 +30,14 @@ export default function RootLayout() {
2830

2931
return (
3032
<SafeAreaView style={{ flex: 1 }}>
33+
<Header />
3134
<Stack>
32-
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
35+
<Stack.Screen name="index" options={{ headerShown: false }} />
36+
<Stack.Screen name="news" options={{ headerShown: false }} />
37+
<Stack.Screen name="chat" options={{ headerShown: false }} />
3338
<Stack.Screen name="+not-found" />
3439
</Stack>
40+
<Footer />
3541
</SafeAreaView>
3642
);
3743
}

app/chat.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import SelfChat from "@/components/chat/self-chat";
2+
import { Link } from "expo-router";
3+
import { View } from "react-native";
4+
5+
const ChatScreen = () => {
6+
return (
7+
<View>
8+
<SelfChat />
9+
<Link href="/">Home</Link>
10+
</View>
11+
);
12+
};
13+
export default ChatScreen;

app/(tabs)/index.tsx renamed to app/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import GradientBackground from "@/components/ui/chatButton";
1+
import { Link } from "expo-router";
22
import { Text, View } from "react-native";
33

44
const HomeScreen = () => {
55
return (
66
<View>
77
<Text>Home Screen</Text>
8-
<GradientBackground />
8+
<Link href="/chat">Chat</Link>
99
</View>
1010
);
1111
};

app/(tabs)/news.tsx renamed to app/news.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import NewsCard from "@/components/ui/news/card";
1+
import NewsCard from "@/components/news/card";
22
import { newsMockData } from "@/constants/data/news";
33
import { ScrollView, View } from "react-native";
44

assets/images/adaptive-icon.png

17.1 KB
Loading

0 commit comments

Comments
 (0)