From 74a5b3930b755a392c7ccc8540f37c67145b33de Mon Sep 17 00:00:00 2001 From: Imbus Date: Fri, 15 Dec 2023 01:31:02 +0100 Subject: [PATCH] Better route splitting --- App.tsx | 42 ++++++++++++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/App.tsx b/App.tsx index 25d910f..e22f7e3 100644 --- a/App.tsx +++ b/App.tsx @@ -5,32 +5,46 @@ import { style } from "./src/util/style"; import { PostsContainer } from "./src/components/PostsContainer"; import { NavigationContainer } from "@react-navigation/native"; import { createNativeStackNavigator } from "@react-navigation/native-stack"; +import { NewPostContainer } from "./src/components/NewPostContainer"; const Stack = createNativeStackNavigator(); export default function App(): JSX.Element { return ( - - - - - + <> + + + + + + + + ); } +const homeOptions = { + headerStyle: style.header, + headerTitleStyle: style.headerTitle, + headerTintColor: "#fff", +}; + function HomeScreen(): JSX.Element { return ( - ); } + +function PostScreen(): JSX.Element { + return ( + + + + ); +}