Skip to content

Commit

Permalink
Created People Stack
Browse files Browse the repository at this point in the history
  • Loading branch information
oneboyfromife committed Sep 21, 2023
1 parent 030db07 commit 2d3af72
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
18 changes: 18 additions & 0 deletions src/navigators/PeopleStack.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import {createStackNavigator} from "@react-navigation/stack";
import Comment from "../screens/Comment";
import People from "../screens/People";
import PeopleView from "../screens/PeopleView";

const Stack = createStackNavigator();

const PeopleStack = () => {
return (
<Stack.Navigator screenOptions={{headerShown: false}}>
<Stack.Screen name={"People"} component={People} />
<Stack.Screen name={"PeopleView"} component={PeopleView} />
<Stack.Screen name={"People"} component={Comment} />
</Stack.Navigator>
);
};

export default PeopleStack;
4 changes: 2 additions & 2 deletions src/navigators/TabNavigator.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import {createBottomTabNavigator} from "@react-navigation/bottom-tabs";
import HomeStack from "./HomeStack";
import Settings from "../screens/Settings";
import People from "../screens/People";
import CalendarScreen from "../screens/Calendar";
import PeopleStack from "./PeopleStack";

const Tab = createBottomTabNavigator();

const TabNavigator = () => {
return (
<Tab.Navigator screenOptions={{headerShown: false}}>
<Tab.Screen name="Timeline" component={HomeStack} />
<Tab.Screen name="People" component={People} />
<Tab.Screen name="People" component={PeopleStack} />
<Tab.Screen name="Calendar" component={CalendarScreen} />
<Tab.Screen name="Settings" component={Settings} />
</Tab.Navigator>
Expand Down
14 changes: 14 additions & 0 deletions src/screens/PeopleView.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { StyleSheet, Text, View } from 'react-native'
import React from 'react'

const PeopleView = () => {
return (
<View>
<Text>PeopleView</Text>
</View>
)
}

export default PeopleView

const styles = StyleSheet.create({})

0 comments on commit 2d3af72

Please sign in to comment.