diff options
author | Thomas F. K. Jorna <[email protected]> | 2021-07-14 17:27:04 +0200 |
---|---|---|
committer | Thomas F. K. Jorna <[email protected]> | 2021-07-14 17:27:04 +0200 |
commit | c829168f361501cab68fc4171c97542d8013bd7b (patch) | |
tree | 63f0c1b705491adff7ebc0c7ec472da5370c38ed /app/navigators/main-navigator.tsx | |
parent | e5021187e96b78b53203bd95d08d6818aea47d17 (diff) |
added random graph with colored edged
Diffstat (limited to 'app/navigators/main-navigator.tsx')
-rw-r--r-- | app/navigators/main-navigator.tsx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/navigators/main-navigator.tsx b/app/navigators/main-navigator.tsx index 9ad110a..d8dc634 100644 --- a/app/navigators/main-navigator.tsx +++ b/app/navigators/main-navigator.tsx @@ -6,7 +6,7 @@ */ import React from "react" import { createStackNavigator } from "@react-navigation/stack" -import { WelcomeScreen, DemoScreen, DemoListScreen } from "../screens" +import { WelcomeScreen, DemoScreen, DemoListScreen, GraphScreen } from "../screens" /** * This type allows TypeScript to know what routes are defined in this navigator @@ -24,6 +24,7 @@ export type PrimaryParamList = { welcome: undefined demo: undefined demoList: undefined + graph: undefined } // Documentation: https://reactnavigation.org/docs/stack-navigator/ @@ -37,14 +38,15 @@ export function MainNavigator() { headerShown: false, }} > - <Stack.Screen name="welcome" component={WelcomeScreen} /> - <Stack.Screen name="demo" component={DemoScreen} /> - <Stack.Screen name="demoList" component={DemoListScreen} /> + <Stack.Screen name="graph" component={GraphScreen}/> </Stack.Navigator> ) } /** + <Stack.Screen name="welcome" component={WelcomeScreen} /> + <Stack.Screen name="demo" component={DemoScreen} /> + <Stack.Screen name="demoList" component={DemoListScreen} /> * A list of routes from which we're allowed to leave the app when * the user presses the back button on Android. * |