mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-02 09:00:16 -06:00
removing safeareacontext in leiu of header
adding tab bar to authenticated screen
This commit is contained in:
@@ -10,7 +10,6 @@ export default function Home(): React.JSX.Element {
|
||||
const { apiClient } = useApiClientContext();
|
||||
|
||||
return (
|
||||
<SafeAreaView>
|
||||
<ScrollView paddingLeft={10}>
|
||||
<YStack alignContent='flex-start'>
|
||||
<Heading>Hi there</Heading>
|
||||
@@ -19,6 +18,5 @@ export default function Home(): React.JSX.Element {
|
||||
</ScrollView>
|
||||
</YStack>
|
||||
</ScrollView>
|
||||
</SafeAreaView>
|
||||
);
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import { createNativeStackNavigator } from "@react-navigation/native-stack";
|
||||
import Home from "./Home/component";
|
||||
import Player from "./Player/component";
|
||||
import { Tabs } from "./tabs";
|
||||
|
||||
export default function Navigation(): React.JSX.Element {
|
||||
|
||||
@@ -10,10 +10,10 @@ export default function Navigation(): React.JSX.Element {
|
||||
<RootStack.Navigator>
|
||||
<RootStack.Group>
|
||||
<RootStack.Screen
|
||||
name="Home"
|
||||
component={Home}
|
||||
name="Tabs"
|
||||
component={Tabs}
|
||||
options={{
|
||||
headerTitle: undefined
|
||||
headerShown: false
|
||||
}}
|
||||
/>
|
||||
</RootStack.Group>
|
||||
|
||||
13
components/tabs.tsx
Normal file
13
components/tabs.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import React from "react";
|
||||
import { createBottomTabNavigator } from '@react-navigation/bottom-tabs';
|
||||
import Home from "./Home/component";
|
||||
|
||||
const Tab = createBottomTabNavigator();
|
||||
|
||||
export function Tabs() {
|
||||
return (
|
||||
<Tab.Navigator>
|
||||
<Tab.Screen name="Home" component={Home} />
|
||||
</Tab.Navigator>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user