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 | |
parent | e5021187e96b78b53203bd95d08d6818aea47d17 (diff) |
added random graph with colored edged
Diffstat (limited to 'app')
-rw-r--r-- | app/components/index.ts | 1 | ||||
-rw-r--r-- | app/navigators/main-navigator.tsx | 10 | ||||
-rw-r--r-- | app/screens/index.ts | 1 |
3 files changed, 8 insertions, 4 deletions
diff --git a/app/components/index.ts b/app/components/index.ts index 5ed4a28..9feec07 100644 --- a/app/components/index.ts +++ b/app/components/index.ts @@ -10,3 +10,4 @@ export * from "./text/text" export * from "./text-field/text-field" export * from "./wallpaper/wallpaper" export * from "./auto-image/auto-image" +export * from "./graph/graph" 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. * diff --git a/app/screens/index.ts b/app/screens/index.ts index 17c8ade..96fcc0b 100644 --- a/app/screens/index.ts +++ b/app/screens/index.ts @@ -2,3 +2,4 @@ export * from "./welcome/welcome-screen" export * from "./demo/demo-screen" export * from "./demo/demo-list-screen" // export other screens here +export * from "./graph/graph-screen" |