update
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
import React from "react";
|
||||
import { createStackNavigator } from "@react-navigation/stack";
|
||||
|
||||
import { Palette } from "../styles";
|
||||
import { Routes } from "./Routes";
|
||||
|
||||
import Settings from "../screens/Settings";
|
||||
import ProjectSettings from "../screens/ProjectSettings";
|
||||
import AccountSettings from "../screens/AccountSettings";
|
||||
|
||||
const screenOptions = {
|
||||
headerShown: false,
|
||||
cardOverlayEnabled: true,
|
||||
headerStyle: {
|
||||
backgroundColor: Palette.background,
|
||||
},
|
||||
headerTitleAlign: "center",
|
||||
headerBackTitleVisible: false,
|
||||
};
|
||||
|
||||
const HomeStack = createStackNavigator();
|
||||
|
||||
export default () => {
|
||||
return (
|
||||
<HomeStack.Navigator
|
||||
initialRouteName={Routes.Settings}
|
||||
screenOptions={[
|
||||
{
|
||||
contentStyle: {
|
||||
backgroundColor: Palette.white,
|
||||
},
|
||||
},
|
||||
screenOptions,
|
||||
]}
|
||||
>
|
||||
<HomeStack.Screen
|
||||
name={Routes.Settings}
|
||||
component={Settings}
|
||||
options={{ headerShown: false }}
|
||||
/>
|
||||
<HomeStack.Screen
|
||||
name={Routes.ProjectSettings}
|
||||
component={ProjectSettings}
|
||||
options={{ headerShown: false }}
|
||||
/>
|
||||
<HomeStack.Screen
|
||||
name={Routes.AccountSettings}
|
||||
component={AccountSettings}
|
||||
options={{ headerShown: false }}
|
||||
/>
|
||||
</HomeStack.Navigator>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user