Loading mobile/app.json +21 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ "version": "1.0.0", "orientation": "portrait", "icon": "./assets/icon.png", "userInterfaceStyle": "light", "userInterfaceStyle": "automatic", "splash": { "image": "./assets/splash.png", "resizeMode": "contain", Loading @@ -29,6 +29,26 @@ "favicon": "./assets/favicon.png" }, "plugins": [ [ "expo-screen-orientation", { "initialOrientation": "DEFAULT" } ], [ "expo-camera", { "cameraPermission": "Allow $(PRODUCT_NAME) to access your camera", "microphonePermission": "Allow $(PRODUCT_NAME) to access your microphone", "recordAudioAndroid": true } ], [ "expo-image-picker", { "photosPermission": "The app accesses your photos to let you share them with your friends." } ], "expo-router", "expo-secure-store" ], Loading mobile/app/(modal)/[id].tsxdeleted 100644 → 0 +0 −16 Original line number Diff line number Diff line import { View, Text } from "react-native"; import { TownSelectionPage } from "../../src/screens/town_selection/town_selection_page"; import { useLocalSearchParams } from "expo-router"; import { FullPageLoader } from "../../src/components/full_page_loader/full_page_loader"; export default function Main () { const { id } = useLocalSearchParams<{ id: string }>(); if (!id) { return ( <FullPageLoader/> ); } return ( <TownSelectionPage stateId={+id}/> ); } No newline at end of file mobile/app/(tabs)/_layout.tsx +7 −0 Original line number Diff line number Diff line Loading @@ -17,7 +17,14 @@ export default function Layout() { screenOptions={{ tabBarActiveTintColor: LIGTHT_THEME.color.primary, tabBarInactiveTintColor: LIGTHT_THEME.color.secondary, headerStyle: { backgroundColor: LIGTHT_THEME.color.primary, }, headerTitleStyle: { color: LIGTHT_THEME.color.white, }, headerTitleAlign: "center", }} > <Tabs.Screen Loading mobile/app/_layout.tsx +21 −9 Original line number Diff line number Diff line Loading @@ -3,13 +3,18 @@ import { DataContextProvider } from "../src/contexts/data_context"; import { LIGTHT_THEME } from "../src/constants/theme"; import { AuthContextProvider, useAuth } from "../src/contexts/auth_context"; import { ActivityIndicator } from "react-native"; import { GestureHandlerRootView } from "react-native-gesture-handler"; export default function Root() { return <DataContextProvider> return ( <GestureHandlerRootView style={{ flex: 1 }}> <DataContextProvider> <AuthContextProvider> <MainLayout /> </AuthContextProvider> </DataContextProvider>; </DataContextProvider> </GestureHandlerRootView> ); } const MainLayout = () => { Loading @@ -20,12 +25,12 @@ const MainLayout = () => { } return ( <Stack initialRouteName="(tabs)" screenOptions={{}}> <Stack.Screen name="(tabs)" options={{ headerShown: false }} /> <Stack initialRouteName="(tabs)" > <Stack.Screen name="(tabs)" options={{ headerShown: false, statusBarColor: LIGTHT_THEME.color.primary }} /> <Stack.Screen name="(modal)/[id]" name="state" options={{ title: "Select town", headerShown: false, statusBarColor: LIGTHT_THEME.color.primary, }} /> Loading @@ -44,6 +49,13 @@ const MainLayout = () => { } } /> <Stack.Screen name="profile" options={{ title: "Profile", headerShown: false, }} /> </Stack> ); }; mobile/app/profile/_layout.tsx 0 → 100644 +12 −0 Original line number Diff line number Diff line import { Stack } from "expo-router"; export default function Layout() { return ( <Stack> <Stack.Screen name="edit" options={{ title: "Edit Profile", headerShown: true, }}/> </Stack> ); } No newline at end of file Loading
mobile/app.json +21 −1 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ "version": "1.0.0", "orientation": "portrait", "icon": "./assets/icon.png", "userInterfaceStyle": "light", "userInterfaceStyle": "automatic", "splash": { "image": "./assets/splash.png", "resizeMode": "contain", Loading @@ -29,6 +29,26 @@ "favicon": "./assets/favicon.png" }, "plugins": [ [ "expo-screen-orientation", { "initialOrientation": "DEFAULT" } ], [ "expo-camera", { "cameraPermission": "Allow $(PRODUCT_NAME) to access your camera", "microphonePermission": "Allow $(PRODUCT_NAME) to access your microphone", "recordAudioAndroid": true } ], [ "expo-image-picker", { "photosPermission": "The app accesses your photos to let you share them with your friends." } ], "expo-router", "expo-secure-store" ], Loading
mobile/app/(modal)/[id].tsxdeleted 100644 → 0 +0 −16 Original line number Diff line number Diff line import { View, Text } from "react-native"; import { TownSelectionPage } from "../../src/screens/town_selection/town_selection_page"; import { useLocalSearchParams } from "expo-router"; import { FullPageLoader } from "../../src/components/full_page_loader/full_page_loader"; export default function Main () { const { id } = useLocalSearchParams<{ id: string }>(); if (!id) { return ( <FullPageLoader/> ); } return ( <TownSelectionPage stateId={+id}/> ); } No newline at end of file
mobile/app/(tabs)/_layout.tsx +7 −0 Original line number Diff line number Diff line Loading @@ -17,7 +17,14 @@ export default function Layout() { screenOptions={{ tabBarActiveTintColor: LIGTHT_THEME.color.primary, tabBarInactiveTintColor: LIGTHT_THEME.color.secondary, headerStyle: { backgroundColor: LIGTHT_THEME.color.primary, }, headerTitleStyle: { color: LIGTHT_THEME.color.white, }, headerTitleAlign: "center", }} > <Tabs.Screen Loading
mobile/app/_layout.tsx +21 −9 Original line number Diff line number Diff line Loading @@ -3,13 +3,18 @@ import { DataContextProvider } from "../src/contexts/data_context"; import { LIGTHT_THEME } from "../src/constants/theme"; import { AuthContextProvider, useAuth } from "../src/contexts/auth_context"; import { ActivityIndicator } from "react-native"; import { GestureHandlerRootView } from "react-native-gesture-handler"; export default function Root() { return <DataContextProvider> return ( <GestureHandlerRootView style={{ flex: 1 }}> <DataContextProvider> <AuthContextProvider> <MainLayout /> </AuthContextProvider> </DataContextProvider>; </DataContextProvider> </GestureHandlerRootView> ); } const MainLayout = () => { Loading @@ -20,12 +25,12 @@ const MainLayout = () => { } return ( <Stack initialRouteName="(tabs)" screenOptions={{}}> <Stack.Screen name="(tabs)" options={{ headerShown: false }} /> <Stack initialRouteName="(tabs)" > <Stack.Screen name="(tabs)" options={{ headerShown: false, statusBarColor: LIGTHT_THEME.color.primary }} /> <Stack.Screen name="(modal)/[id]" name="state" options={{ title: "Select town", headerShown: false, statusBarColor: LIGTHT_THEME.color.primary, }} /> Loading @@ -44,6 +49,13 @@ const MainLayout = () => { } } /> <Stack.Screen name="profile" options={{ title: "Profile", headerShown: false, }} /> </Stack> ); };
mobile/app/profile/_layout.tsx 0 → 100644 +12 −0 Original line number Diff line number Diff line import { Stack } from "expo-router"; export default function Layout() { return ( <Stack> <Stack.Screen name="edit" options={{ title: "Edit Profile", headerShown: true, }}/> </Stack> ); } No newline at end of file