From 2d3af722077e851e8ba2b51f14b494eabc57e957 Mon Sep 17 00:00:00 2001 From: AKintunde Owojori Date: Thu, 21 Sep 2023 06:41:57 +0100 Subject: [PATCH] Created People Stack --- src/navigators/PeopleStack.js | 18 ++++++++++++++++++ src/navigators/TabNavigator.js | 4 ++-- src/screens/PeopleView.js | 14 ++++++++++++++ 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 src/navigators/PeopleStack.js create mode 100644 src/screens/PeopleView.js diff --git a/src/navigators/PeopleStack.js b/src/navigators/PeopleStack.js new file mode 100644 index 0000000..0622163 --- /dev/null +++ b/src/navigators/PeopleStack.js @@ -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 ( + + + + + + ); +}; + +export default PeopleStack; diff --git a/src/navigators/TabNavigator.js b/src/navigators/TabNavigator.js index 1767fd6..47909ec 100644 --- a/src/navigators/TabNavigator.js +++ b/src/navigators/TabNavigator.js @@ -1,8 +1,8 @@ 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(); @@ -10,7 +10,7 @@ const TabNavigator = () => { return ( - + diff --git a/src/screens/PeopleView.js b/src/screens/PeopleView.js new file mode 100644 index 0000000..ef4213a --- /dev/null +++ b/src/screens/PeopleView.js @@ -0,0 +1,14 @@ +import { StyleSheet, Text, View } from 'react-native' +import React from 'react' + +const PeopleView = () => { + return ( + + PeopleView + + ) +} + +export default PeopleView + +const styles = StyleSheet.create({}) \ No newline at end of file