mirror of
https://github.com/urosran/cally.git
synced 2025-11-26 16:34:54 +00:00
PKG update
This commit is contained in:
2
app.json
2
app.json
@ -16,7 +16,7 @@
|
|||||||
"supportsTablet": true,
|
"supportsTablet": true,
|
||||||
"bundleIdentifier": "com.cally.app",
|
"bundleIdentifier": "com.cally.app",
|
||||||
"googleServicesFile": "./ios/GoogleService-Info.plist",
|
"googleServicesFile": "./ios/GoogleService-Info.plist",
|
||||||
"buildNumber": "62",
|
"buildNumber": "63",
|
||||||
"usesAppleSignIn": true
|
"usesAppleSignIn": true
|
||||||
},
|
},
|
||||||
"android": {
|
"android": {
|
||||||
|
|||||||
@ -1,29 +1,16 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { Drawer } from "expo-router/drawer";
|
import {Drawer} from "expo-router/drawer";
|
||||||
import { useSignOut } from "@/hooks/firebase/useSignOut";
|
import {useSignOut} from "@/hooks/firebase/useSignOut";
|
||||||
import {
|
import {DrawerContentScrollView,} from "@react-navigation/drawer";
|
||||||
DrawerContentScrollView,
|
import {Button, ButtonSize, Text, View} from "react-native-ui-lib";
|
||||||
DrawerItem,
|
import {ImageBackground, StyleSheet} from "react-native";
|
||||||
DrawerItemList,
|
|
||||||
} from "@react-navigation/drawer";
|
|
||||||
import { Button, View, Text, ButtonSize } from "react-native-ui-lib";
|
|
||||||
import { ImageBackground, StyleSheet } from "react-native";
|
|
||||||
import Feather from "@expo/vector-icons/Feather";
|
|
||||||
import DrawerButton from "@/components/shared/DrawerButton";
|
import DrawerButton from "@/components/shared/DrawerButton";
|
||||||
import {
|
|
||||||
AntDesign,
|
|
||||||
FontAwesome6,
|
|
||||||
MaterialCommunityIcons,
|
|
||||||
Octicons,
|
|
||||||
} from "@expo/vector-icons";
|
|
||||||
import MenuIcon from "@/assets/svgs/MenuIcon";
|
|
||||||
import { router } from "expo-router";
|
|
||||||
import NavGroceryIcon from "@/assets/svgs/NavGroceryIcon";
|
import NavGroceryIcon from "@/assets/svgs/NavGroceryIcon";
|
||||||
import NavToDosIcon from "@/assets/svgs/NavToDosIcon";
|
import NavToDosIcon from "@/assets/svgs/NavToDosIcon";
|
||||||
import NavBrainDumpIcon from "@/assets/svgs/NavBrainDumpIcon";
|
import NavBrainDumpIcon from "@/assets/svgs/NavBrainDumpIcon";
|
||||||
import NavCalendarIcon from "@/assets/svgs/NavCalendarIcon";
|
import NavCalendarIcon from "@/assets/svgs/NavCalendarIcon";
|
||||||
import NavSettingsIcon from "@/assets/svgs/NavSettingsIcon";
|
import NavSettingsIcon from "@/assets/svgs/NavSettingsIcon";
|
||||||
import { useAtom, useSetAtom } from "jotai";
|
import {useSetAtom} from "jotai";
|
||||||
import {
|
import {
|
||||||
isFamilyViewAtom,
|
isFamilyViewAtom,
|
||||||
settingsPageIndex,
|
settingsPageIndex,
|
||||||
@ -32,7 +19,7 @@ import {
|
|||||||
} from "@/components/pages/calendar/atoms";
|
} from "@/components/pages/calendar/atoms";
|
||||||
|
|
||||||
export default function TabLayout() {
|
export default function TabLayout() {
|
||||||
const { mutateAsync: signOut } = useSignOut();
|
const {mutateAsync: signOut} = useSignOut();
|
||||||
const setIsFamilyView = useSetAtom(isFamilyViewAtom);
|
const setIsFamilyView = useSetAtom(isFamilyViewAtom);
|
||||||
const setPageIndex = useSetAtom(settingsPageIndex);
|
const setPageIndex = useSetAtom(settingsPageIndex);
|
||||||
const setUserView = useSetAtom(userSettingsView);
|
const setUserView = useSetAtom(userSettingsView);
|
||||||
@ -52,7 +39,7 @@ export default function TabLayout() {
|
|||||||
}}
|
}}
|
||||||
drawerContent={(props) => {
|
drawerContent={(props) => {
|
||||||
return (
|
return (
|
||||||
<DrawerContentScrollView {...props} style={{ height: "100%" }}>
|
<DrawerContentScrollView {...props} style={{height: "100%"}}>
|
||||||
<View centerV margin-30 row>
|
<View centerV margin-30 row>
|
||||||
<ImageBackground
|
<ImageBackground
|
||||||
source={require("../../assets/images/splash.png")}
|
source={require("../../assets/images/splash.png")}
|
||||||
@ -68,10 +55,10 @@ export default function TabLayout() {
|
|||||||
<View
|
<View
|
||||||
style={{
|
style={{
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
paddingHorizontal: 30,
|
paddingHorizontal: 30
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<View style={{ flex: 1, paddingRight: 5 }}>
|
<View style={{flex: 1, paddingRight: 5}}>
|
||||||
<DrawerButton
|
<DrawerButton
|
||||||
title={"Calendar"}
|
title={"Calendar"}
|
||||||
color="rgb(7, 184, 199)"
|
color="rgb(7, 184, 199)"
|
||||||
@ -83,7 +70,7 @@ export default function TabLayout() {
|
|||||||
setUserView(true);
|
setUserView(true);
|
||||||
setIsFamilyView(false);
|
setIsFamilyView(false);
|
||||||
}}
|
}}
|
||||||
icon={<NavCalendarIcon />}
|
icon={<NavCalendarIcon/>}
|
||||||
/>
|
/>
|
||||||
<DrawerButton
|
<DrawerButton
|
||||||
color="#50be0c"
|
color="#50be0c"
|
||||||
@ -96,10 +83,10 @@ export default function TabLayout() {
|
|||||||
setUserView(true);
|
setUserView(true);
|
||||||
setIsFamilyView(false);
|
setIsFamilyView(false);
|
||||||
}}
|
}}
|
||||||
icon={<NavGroceryIcon />}
|
icon={<NavGroceryIcon/>}
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
<View style={{ flex: 1 }}>
|
<View style={{flex: 1}}>
|
||||||
{/*<DrawerButton
|
{/*<DrawerButton
|
||||||
color="#fd1775"
|
color="#fd1775"
|
||||||
title={"My Reminders"}
|
title={"My Reminders"}
|
||||||
@ -124,7 +111,7 @@ export default function TabLayout() {
|
|||||||
setUserView(true);
|
setUserView(true);
|
||||||
setIsFamilyView(false);
|
setIsFamilyView(false);
|
||||||
}}
|
}}
|
||||||
icon={<NavToDosIcon />}
|
icon={<NavToDosIcon/>}
|
||||||
/>
|
/>
|
||||||
<DrawerButton
|
<DrawerButton
|
||||||
color="#e0ca03"
|
color="#e0ca03"
|
||||||
@ -137,9 +124,8 @@ export default function TabLayout() {
|
|||||||
setUserView(true);
|
setUserView(true);
|
||||||
setIsFamilyView(false);
|
setIsFamilyView(false);
|
||||||
}}
|
}}
|
||||||
icon={<NavBrainDumpIcon />}
|
icon={<NavBrainDumpIcon/>}
|
||||||
/>
|
/>
|
||||||
{/*<DrawerItem label="Logout" onPress={() => signOut()} />*/}
|
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
<Button
|
<Button
|
||||||
@ -157,29 +143,28 @@ export default function TabLayout() {
|
|||||||
backgroundColor="#ededed"
|
backgroundColor="#ededed"
|
||||||
width={60}
|
width={60}
|
||||||
height={60}
|
height={60}
|
||||||
style={{ borderRadius: 50 }}
|
style={{borderRadius: 50}}
|
||||||
marginR-10
|
marginR-10
|
||||||
centerV
|
centerV
|
||||||
centerH
|
centerH
|
||||||
>
|
>
|
||||||
<NavSettingsIcon />
|
<NavSettingsIcon/>
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
backgroundColor="white"
|
backgroundColor="white"
|
||||||
color="#464039"
|
color="#464039"
|
||||||
paddingV-30
|
paddingV-30
|
||||||
marginH-30
|
marginH-30
|
||||||
marginB-10
|
|
||||||
borderRadius={18.55}
|
borderRadius={18.55}
|
||||||
style={{ elevation: 0 }}
|
style={{elevation: 0}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
size={ButtonSize.large}
|
size={ButtonSize.large}
|
||||||
marginH-30
|
marginH-10
|
||||||
paddingV-15
|
paddingV-15
|
||||||
style={{
|
style={{
|
||||||
marginTop: "42%",
|
marginTop: 50,
|
||||||
backgroundColor: "transparent",
|
backgroundColor: "transparent",
|
||||||
borderWidth: 1.3,
|
borderWidth: 1.3,
|
||||||
borderColor: "#fd1775",
|
borderColor: "#fd1775",
|
||||||
@ -205,7 +190,7 @@ export default function TabLayout() {
|
|||||||
options={{
|
options={{
|
||||||
drawerLabel: "Calendar",
|
drawerLabel: "Calendar",
|
||||||
title: "Calendar",
|
title: "Calendar",
|
||||||
drawerItemStyle: { display: "none" },
|
drawerItemStyle: {display: "none"},
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Drawer.Screen
|
<Drawer.Screen
|
||||||
@ -248,8 +233,8 @@ export default function TabLayout() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
signOut: { fontFamily: "Poppins_500Medium", fontSize: 15 },
|
signOut: {fontFamily: "Poppins_500Medium", fontSize: 15},
|
||||||
label: { fontFamily: "Poppins_400Medium", fontSize: 15 },
|
label: {fontFamily: "Poppins_400Medium", fontSize: 15},
|
||||||
title: {
|
title: {
|
||||||
fontSize: 26.13,
|
fontSize: 26.13,
|
||||||
fontFamily: "Manrope_600SemiBold",
|
fontFamily: "Manrope_600SemiBold",
|
||||||
|
|||||||
Reference in New Issue
Block a user