From c829168f361501cab68fc4171c97542d8013bd7b Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Wed, 14 Jul 2021 17:27:04 +0200 Subject: added random graph with colored edged --- app/components/index.ts | 1 + app/navigators/main-navigator.tsx | 10 ++++++---- app/screens/index.ts | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) (limited to 'app') 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, }} > - - - + ) } /** + + + * 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" -- cgit v1.2.3