import { Animated, Dimensions, Easing } from "react-native";
// header for screens
import { Header, Icon } from "../components";
import { argonTheme, tabs } from "../constants";
import Articles from "../screens/Articles";
import { Block } from "galio-framework";
// drawer
import CustomDrawerContent from "./Menu";
import Elements from "../screens/Elements";
// screens
import Home from "../screens/Home";
import Onboarding from "../screens/Onboarding";
import Pro from "../screens/Pro";
import Profile from "../screens/Profile";
import React from "react";
import Register from "../screens/Register";
import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
import { createDrawerNavigator } from "@react-navigation/drawer";
import { createStackNavigator } from "@react-navigation/stack";
const { width } = Dimensions.get("screen");
const Stack = createStackNavigator();
const Drawer = createDrawerNavigator();
const Tab = createBottomTabNavigator();
function ElementsStack(props) {
return (
(
),
cardStyle: { backgroundColor: "#F8F9FE" },
}}
/>
(
),
headerTransparent: true,
}}
/>
);
}
function ArticlesStack(props) {
return (
(
),
cardStyle: { backgroundColor: "#F8F9FE" },
}}
/>
(
),
headerTransparent: true,
}}
/>
);
}
function ProfileStack(props) {
return (
(
),
cardStyle: { backgroundColor: "#FFFFFF" },
headerTransparent: true,
}}
/>
(
),
headerTransparent: true,
}}
/>
);
}
function HomeStack(props) {
return (
(
),
cardStyle: { backgroundColor: "#F8F9FE" },
}}
/>
(
),
headerTransparent: true,
}}
/>
);
}
export default function OnboardingStack(props) {
return (
);
}
function AppStack(props) {
return (
}
drawerStyle={{
backgroundColor: "white",
width: width * 0.8,
}}
drawerContentOptions={{
activeTintcolor: "white",
inactiveTintColor: "#000",
activeBackgroundColor: "transparent",
itemStyle: {
width: width * 0.75,
backgroundColor: "transparent",
paddingVertical: 16,
paddingHorizonal: 12,
justifyContent: "center",
alignContent: "center",
alignItems: "center",
overflow: "hidden",
},
labelStyle: {
fontSize: 18,
marginLeft: 12,
fontWeight: "normal",
},
}}
initialRouteName="Home"
>
);
}